Perl problems...
Ben Pfaff
pfaffben@msu.edu
03 Apr 2000 15:41:09 -0400
Edward Glowacki <glowack2@key-largo.cl.msu.edu> writes:
> OK, I'm really really confused now... Is there any difference between
> these two, because they don't behave the same:
>
> First line of script.pl:
> #!/usr/bin/perl -w -I/usr/local/etc -I/usr/local/bin
>
> Command line:
> # perl -w -I/usr/local/etc -I/usr/local/bin script.pl
>From perlrun(1p):
Because many operating systems silently chop off kernel
interpretation of the #! line after 32 characters, some
switches may be passed in on the command line, and some
may not; you could even get a "-" without its letter, if
you're not careful. You probably want to make sure that
all your switches fall either before or after that 32
character boundary. Most switches don't actually care if
they're processed redundantly, but getting a - instead of
a complete switch could cause Perl to try to execute
standard input instead of your script. And a partial -I
switch could also cause odd results.