in reply to use warnings vs. perl -w
perl itself parses the #! line, even if the operating system ignores it. There are a few other tricks perl does with the #! line, also described in perlrun.The #! line is always examined for switches as the line is being parsed. Thus, if you're on a machine that allows only one argument with the #! line, or worse, doesn't even recognize the #! line, you still can get consistent switch behavior regardless of how Perl was invoked, even if -x was used to find the beginning of the script.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: use warnings vs. perl -w
by idnopheq (Chaplain) on Apr 10, 2001 at 16:35 UTC | |
by Anonymous Monk on Dec 03, 2003 at 07:00 UTC |