----- Original Message -----
From: "Michael D Schleif"
.
.
> Use of uninitialized value in numeric gt(>) at
/usr/lib/perl/5.8/DB_File.pm line 271.
.
.
You can turn specific warnings off - either for the entire script/module, or
for a just a block of code within the script/module -eg:
use warnings;
if($x > 3) {print "not ok\n"}
else {print "ok\n"}
{
no warnings "uninitialized";
if($y > 3) {print "not ok\n"}
else {print "ok\n"}
}
That will warn you that $x is uninitialized, but not that $y is
uninitialized. But all other warnings are still enabled for both $x and $y.
Another approach is to make sure that any uninitialized value is initialized
before being submitted to the numeric gt test:
if(!defined($something)) { $something = 0 }
Cheers,
Rob
_______________________________________________
Perl-Win32-Users mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs