Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Re: perl -x to test while developing (riddles)

by bsb (Priest)
on Apr 29, 2003 at 06:06 UTC ( [id://253909]=note: print w/replies, xml ) Need Help??


in reply to Re: perl -x to test while developing (riddles)
in thread perl -x to test while developing

-mstrict does nothing useful, just like 'require strict;'.
Thanks, fixed.
Although I maybe it's more like 'use strict ();'
$ perl -mstrict=vars -le 'print $x**$y;' Global symbol "$x" requires explicit package...
perlrun says "Any meaningful switches on that line will be applied" but "meaningful" seems to be strangely implemented. At least with 5.6.1.

Here's another one:

$ perl -x #!perl -wl -Mstrict -MB -MCGI Argument "MCGI" isn't numeric in subtraction (-). Argument "-MB" isn't numeric in subtraction (-).

Replies are listed 'Best First'.
Re^3: perl -x to test while developing (-m switch)
by Aristotle (Chancellor) on Apr 30, 2003 at 12:59 UTC
    Although I maybe it's more like 'use strict ();'
    That's indeed what -m means, which, to be entirely precise, is like BEGIN { require strict }.

    Makeshifts last the longest.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://253909]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (5)
As of 2024-04-26 08:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found