[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Omaha.pm] silly warnings
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