Kashif Salman wrote:
On Fri, Mar 14, 2008 at 11:10 AM, Gunnar Hjalmarsson <[EMAIL PROTECTED]> wrote:
> The -w switch enables warnings dynamically, and apparently CGI.pm isn't
> 'warnings safe'. To get rid of those warnings, you can replace the -w
> switch with the warnings pragma, which is lexically scoped.
If I am understanding this correctly does that mean -w would enable
warnings in my script as well as CGI.pm while 'use warnings' will
enable warnings only in my script?
Yes. See "perldoc perllexwarn".
--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/