in reply to use warnings vs. perl -w
Under Windows you should start all of your scripts with
Surprised? Note that this won't tell the operating system to look for perl.exe in the /usr/bin directory. It will tell perl to turn on warnings, even on Windows, even without Apache. Oh, when using Apache, you'd want the real path to perl.exe instead of /usr/bin/perl, since, as you know, Apache looks at the #! line.#!/usr/bin/perl -w
I don't use warnings as that will prevent my code from compiling prior to Perl 5.6 and it is still way too early to yell at anyone for running pre-5.6 versions of Perl. (:
- tye (but my friends call me "Tye")
In Section
Seekers of Perl Wisdom