in reply to RE: RE: CGI::Carp
in thread Reviews Quest
As far as I know, the use warnings pragma was introduced as:
- it is easier for people who are on non 'shebang supporting' systems to use.
- it can be disabled for certain sections of code, e.g.
On systems that don't support the UNIX shebang, it is a pain having to manually type inuse strict; use warnings; print $foo; # Warning here, undefined value no warnings; print $foo; # No warning now use warnings; print $foo; # Warning again
perl -w foo.pl
every time you want warnings. If you can just use the pragma, it is easier.
|
|---|