Front page | perl.perl6.internals |
Postings from February 2001
Re: require < 6.x
Thread Previous
|
Thread Next
From:
Stephen P. Potter
Date:
February 21, 2001 11:07
Subject:
Re: require < 6.x
Message ID:
200102211905.OAA27986@spotter.yi.org
Lightning flashed, thunder crashed and "NeonEdge" <wizard@neonedge.com> whisper
ed:
| This is probably way too late, but does this make any sense: could p6 allow
| (for the first few versions anyway) a "require <6;" directive?
Do you understand how the current "require #;" works? It already pretty
much does what you want. If you try to do something like
perl5.6.0 -e 'require 6;'
you get the following error already:
Perl v6.0.0 required--this is only v5.6.0, stopped....
I would expect when people install 6, they will keep their 5.6.x (or 5.8.x
or whatever) versions around. They can then just modify their scripts to
call perl5.x.y instead of perl if they want to ensure they run under 5. If
they're going to have to go in and add a "require <6" already, its easier
to just modify the #! line (and less coding for us).
Then, the scripts they do want run under 6, they can put "require 6;" in
and get the above error.
You might be able to convince people that perl6 should bomb (or
automagically run the p52p6 script) if it encountered a "require 5;".
-spp
Thread Previous
|
Thread Next
-
PDD 2, vtables
by Dan Sugalski
-
Re: PDD 2, vtables
by David Mitchell
-
Re: PDD 2, vtables
by David Mitchell
-
Re: PDD 2, vtables
by David Mitchell
-
Re: PDD 2, vtables
by Branden
-
Re: PDD 2, vtables
by David Mitchell
-
Re: PDD 2, vtables
by David Mitchell
-
Re: PDD 2, vtables
by David Mitchell
-
Re: PDD 2, vtables
by David Mitchell
-
Re: PDD 2, vtables
by David Mitchell
-
Re: PDD 2, vtables
by Dan Sugalski
-
Re: PDD 2, vtables
by Simon Cozens
-
Re: PDD 2, vtables
by Dan Sugalski
-
Re: PDD 2, vtables
by Edwin Steiner
-
Re: PDD 2, vtables
by Dan Sugalski
-
Re: PDD 2, vtables
by Tim Bunce
-
Re: PDD 2, vtables
by Branden
-
Re: require < 6.x
by Brent Dax