|
|
| Perl-Sensitive Sunglasses | |
| PerlMonks |
Re^2: Check for an empty fileby ChuckularOne (Vicar) |
| on Sep 23, 2011 at 12:36 UTC ( #927542=note: print w/ replies, xml ) | Need Help?? |
|
I had some trouble with this a while back. -s returns a zero if the file is either zero bytes or nonexistent. It got a bit confusing until I worked out what was happening.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||