Most Perl 6 will look like Perl 5
david at cantrell.org.uk
Fri Jan 25 14:40:04 GMT 2008
On Fri, Jan 25, 2008 at 12:50:26PM +0000, Jonathan Stowe wrote:
> On Fri, 2008-01-25 at 12:30 +0000, Paul LeoNerd Evans wrote:
> > Perl6 is a new language, that takes its inspiration from Perl5. To claim
> > that your modules won't work on both, is as obvious a claim as the fact
> > that the same script isn't both a Bourne and a C shell script ...
> This much has been clear almost since day one - though it's so long ago
> now I may be mis-remembering.
You are mis-remembering. We were told very early on that existing perl
code would work in the new language, and that the only change that would
be required was that you *must* use the keyword 'package' for anything
non-trivial as a compiler hint that yes, this really is old code. Hence
'package main' in some of my code from a few years ago when perl 6 was
expected by Christmas.
David Cantrell | Official London Perl Mongers Bad Influence
What a lovely day! Now watch me spoil it for you.
More information about the london.pm