First of all, the shebang line is only the line beginning with '#!'. You remarked correctly that on Windows this has no meaning to the OS but perl will always look into that line and extract command line parameters if it contains the word perl. From this point of view it doesn't matter if you write #!perl or #!/usr/bin/perl or #!ohmegod, it's perl. On *nix this line specifies the location of the perl executable which is normally (but not always) located in /usr/bin.
Concerning the use statements, I would go for
as was recently discussed here. The discussion there also explains the difference between perl -w and use warnings; Your use win32; includes the win32 which provides specific functions for Windows (surprise :) but you only use it if you need some of these functions.use 5.6.0; use strict; use warnings;
-- Hofmator
In reply to Re: win32 shebang
by Hofmator
in thread win32 shebang
by softworkz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |