On Fri, 15 Feb 2002, F.Xavier Noria wrote:
> 
> Aha, is documented in perldiag:
> 
>        Too late for """"-%s"""" option
>            (X) The #! line (or local equivalent) in a Perl script
>            contains the -M or -m option.  This is an error
>            because -M and -m options are not intended for use
>            inside scripts.  Use the use pragma instead.
> 
> So it seems that the shell invokes perl with the flag and perl itself
> does not handle it. Where is the difference from the perl's view of the
> execution? Why "-M and -m options are not intended for use inside
> scripts"?
> 

It's a good question. Does anyone know why they should be forbidden? Is
there a technical reason preventing them working?

I mean, there are other command line arguments that have equivalents within
the program. For example, it doesn't say "-w is not intended for use inside
scripts. Use $^W = 1 instead." I feel there must be more to it than that.

-- 
Stephen Turner, Cambridge, UK    http://homepage.ntlworld.com/adelie/stephen/
"This is Henman's 8th Wimbledon, and he's only lost 7 matches." BBC, 2/Jul/01

Reply via email to