So, we are moving in a more verbose direction, which is a bummer for
people who like to write one-liners and other tiny programs.

Assuming only Perl 6 is installed on your system, if your script
started with:

  #!/usr/bin/perl

all the stuff about trying to figure out what version you are using
would have to apply I suppose. But, if you used this, are we saying
you still have to do something else to ensure its treated as Perl 6?

  #!/usr/bin/perl6

And, if you did this, you might have to do something else to ensure
it is treated as Perl 5?

  #!/usr/bin/perl5

that seems wrong.


Regards,

-- Gregor

On Tue, 2004-04-13 at 08:12, Luke Palmer wrote:
> David Cantrell writes:
> > A few days ago I briefly discussed with Nicholas Clark (current perl 5.8
> > pumpking) about making perl5 code forward-compatible with perl6.  A
> > quick look through the mailing list archives didn't turn up anything
> > obvious, and I don't recall any mechanism being presented in any of the
> > Apocalypses, so ...
> 
> Well, there is one, as far as I understand it.  Your "use perl5;" is
> spelled "package".  That is, perl will assume Perl 6 unless it sees
> "package SomethingOrOther;" (since Perl 6 calls them "module"s).  So, to
> force Perl 5 interpretation, use:
> 
>     package main;
> 
> Luke
-- 
Gregor Purdy                            [EMAIL PROTECTED]
Focus Research, Inc.               http://www.focusresearch.com/

Reply via email to