in reply to perl -x to test while developing
Some more riddles:
Perl's support for -M on the #! line is limited (to the point of not being supported at all in my version of Perl, v5.6.0). Your version appears to support it to some extent (was that small amount of support added or was it removed because it was buggy and too much work to do right?). That is why we have use.% perl -mstrict -le 'print $x**$y;' 1 % perl -l require strict; print $x**$y; <EOF> 1 % perl #!perl -MCarp -Mstrict Too late for "-MCarp" option %
-mstrict does nothing useful, just like 'require strict;'.
Oh, and nice trick. Thanks. (:
- tye
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: perl -x to test while developing (riddles)
by bsb (Priest) on Apr 29, 2003 at 06:06 UTC | |
by Aristotle (Chancellor) on Apr 30, 2003 at 12:59 UTC |