"be consistent" | |
PerlMonks |
Re: Use of uninitialized value in numeric gt (>)by YuckFoo (Abbot) |
on Aug 12, 2004 at 22:54 UTC ( [id://382490]=note: print w/replies, xml ) | Need Help?? |
The problem is -s returns undef if the file does not exist. Then undef causes the 'uninitialized' warning. One fix for this is to set $flag_size to 0 when -s returns undef:
YuckDef
In Section
Seekers of Perl Wisdom
|
|