Matthew Walton wrote:

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'?

It's going to think 'ahah', perl 5'. Because it doesn't contain any Perl 6 keyword (such as 'module' or 'class'), as Mark said.


=thom
Reality is that which, when you stop believing it, doesn't go away. -Philip K. Dick






Reply via email to