Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
December 16, 2015, 1:05 pm
rate this thread
(5to6-nutshell says that programs "must be written differently").
If I were to, hypothetically, prepare for that version switch,
would the necessary changes be unaffected by a mod_perl
environment (if this is ever going to exist), or will there
need to be a 5to6-nutshell-mod_perl?
In our Perl 5 programs, we now have for constant values
*SOME_NAMED_VAL = \ 123;
use constant => ...;
"constant", a compile time action, triggers lists of warnings in
server logs about things redefined in mod_perl (more generally,
when becoming part of a block for other reasons), so with literals,
the first method seems preferable - but also gone with Perl 6.
The replacement appears to be a declarator pragma evaluated at
compile time, so I'd expect the list of warnings to reappear?
The `*' can be evaluated many times, and can be used with local.
Is Perl 6 asking for a redesign whenever I want to achieve these
effects? Will mod_perl survive in a Perl 6 world?
Re: symbol table evaluation, constants, and Perl 6
Perl 6 constants are described here:
That's a non-sequitur unless 'warnings' are to be avoided for the sake
of avoiding them, not because of any actually detrimental (or
not-so-detrimental) effects causing them.
"The language calling itself Perl 6" is an attempt to throw the baby
away and keep the bathwater in the hope that this will be sufficient to
fool people into not noticing the different baby. The German term for
this is "Mogelpackung". While "Perl 6" has had an "orthodox ideology
beats pragamtic usability" problem from the start, it lost anything
which could ever have rendered it interesting when it became just
another "Exciting new syntax!" playground for (student) Java
afficionados. Unless it is demonstrably useful for something (vulgo:
there's code written by someone else in Perl 6 which is useful enough to
warrant using it), it's best ignored.
- » To compare files in two directories recursively and copy the missing files from first dir ...
- — Previous thread in » PERL Discussions