Mark J. Reed wrote:
On 2004-04-13 at 13:16:02, David Cantrell wrote:

Perl 6, we are promised, will try to run "legacy" code unchanged. How
will it spot such legacy code?


My understanding has been that perl6 will assume a program is Perl 5 unless
it sees a Perl 6 keyword such as 'module' or 'class'.

That could be problematic, because if Perl 6 sees something like:


my %myhash;
%myhash{'foo'} = 'bar';


Is it going to think 'ahah, perl 6' or 'perl 5 with errors'?


That's assuming my understanding of hash subscripting and variable declarations in Perl 6 is even slightly correct, of course.



Reply via email to