Y
Yohan N Leder
Hello,
What the preferable way to activate warnings in CGI Perl scripts ? And,
especially, why ?
1) The "-w" in the shebang line as "#!/usr/bin/perl -w"
2) Or a "use warnings;"
This question because, I'm used to use "use warnings", but was surprised
to see, some days ago, that some servers (for example, in a Fedora Core
5 with httpd and the Perl packages installed by default) don't have this
module and fail on it with errors log saying something like "no such a
file".
What the preferable way to activate warnings in CGI Perl scripts ? And,
especially, why ?
1) The "-w" in the shebang line as "#!/usr/bin/perl -w"
2) Or a "use warnings;"
This question because, I'm used to use "use warnings", but was surprised
to see, some days ago, that some servers (for example, in a Fedora Core
5 with httpd and the Perl packages installed by default) don't have this
module and fail on it with errors log saying something like "no such a
file".