I think what you want is this:

no warnings qw(uninitialized);

Which should suppress only the warnings about an uninitialized value in
string or concatenation messages.

-----Original Message-----
From: Richard Heintze [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 04, 2003 10:24 AM
To: [EMAIL PROTECTED]
Subject: Surpressing concatenation with null warnings


I have just discovered the the following code causes
trouble when I have "use strict" and "use warn";

use strict;
use warnings;

my $k = $q->param('xyz');
print qq[ \$k = $k ];

The problem is that if there is no GET/POST param
called xyz, we are concatenating with a null value
and, when using CGI with Apache HTTPD, this is not a
problem (except it tends to make for large error
logs).

However, when using it with IIS it is a big problem
because the warning text gets inserted into the HTML
output (which is a BIG problem if you are in the
middle of emitting javascript code).

Is there a way I can suppress only concatenation
warnings? I did perldoc strict and perldoc warnings
and could not determine if the supression I want is
possible.

   Thanks,
      Sieg

__________________________________
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to