in reply to win32 shebang
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(tye)Re: win32 shebang
by tye (Sage) on Aug 08, 2001 at 23:43 UTC | |
by John M. Dlugosz (Monsignor) on Aug 09, 2001 at 03:03 UTC | |
by tye (Sage) on Aug 09, 2001 at 05:40 UTC | |
by John M. Dlugosz (Monsignor) on Aug 09, 2001 at 06:39 UTC |