Windows doesn't read the shebang line. Perl in Windows does parse the shebang line (unlike Perl in unix, which treats it like any other comment), but not for the reason you mentioned.
Update: Corrected problems identified by Celada. Verification of what he/she said:
$ uname -sr FreeBSD 5.4-RELEASE-p8 $ cat a.pl #!/usr/bin/perl -w print undef; $ a.pl Use of uninitialized value in print at ./a.pl line 2. $ perl a.pl Use of uninitialized value in print at a.pl line 2.
In reply to Re^3: ARGV Problem
by ikegami
in thread ARGV Problem
by tjdmlhw
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |