[Omaha.pm] silly warnings
Jay Hannah
jhannah at omnihotels.com
Tue Dec 16 15:25:07 PST 2008
Laugh... Can I complain about too-noisy warnings forcing me to clutter my code again? Or am I already over quota? -laugh-
Original code:
use warnings;
...
next if ($audit->{$date}->{$hotel} > 0);
Warning:
Use of uninitialized value in numeric gt (>) at extract_launcher.pl line 192.
So now my code says this:
next if ($audit->{$date} && $audit->{$date}->{$hotel} && $audit->{$date}->{$hotel} > 0);
Sigh... :)
j
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.pm.org/pipermail/omaha-pm/attachments/20081216/a502a55c/attachment.html>
More information about the Omaha-pm
mailing list