To be brief, file extensions for both programs and modules should remain exactly the same, .pl and .pm, between Perl 5 and Perl 6. Perl 5 and Perl 6 code are differentiated by what the files contain, not by their file name extensions. For example, what their internal 'use 6' vs 'use 5' lines say. See Synopsis 1 ( http://perlcabal.org/syn/S01.html ), which talks about this. -- Darren Duncan

At 12:14 AM +0300 1/5/08, Richard Hainsworth wrote:
Perl scripts have had the extension *.pl

To distinguish the scripts I started writing in perl6 from those in the same directory written for perl5, I started naming perl6 scripts with extension *.p6 .

Trivial question, I suppose, but any reason not to use p6? What will the perl6 compiler look for?

Ditto for modules:
Does
use MyModule
imply that MyModule.pm is in the path?

And so by extension, what about other languages, eg. Parrot? What does
use parrot:MyModule

imply is in the path? Or should it be
use parrot:MyModule.pir
?

Regards,
Richard

Reply via email to