At 05:20 PM 4/27/2002 -0700, drieux wrote:
>>That's because the shebang line is ignored when you prefix the script with
>>the perl command.
>
>you are correct - but I prefer to assert it the other way around,
>
>when the perl interpretor is invoked with a file - it reads and
>executes the perl way - hence #<foo> is parsed as comment and is
>irrelevant.

Beep, no.  Observe:

$ perl
#!/foo/bar/perl -T
Too late for "-T" option at - line 1.

The line is *not* ignored.  The path is ignored, but the options are still 
read out and set.  Another demonstration of this:

$ perl
#!/foo/bar/perl -w
print
Use of uninitialized value in print at - line 2.
^D
$ perl
print
^D
$

Peter Scott
[EMAIL PROTECTED]
http://www.perldebugged.com


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to