|
|
| Think about Loose Coupling | |
| PerlMonks |
Re: -s switch in perlby philipbailey (Chaplain) |
| on Jul 29, 2009 at 17:03 UTC ( #784294=note: print w/ replies, xml ) | Need Help?? |
|
It is also worth mentioning that using -s in the manner shown is equivalent to: if (-e /tmp/xyz && !-z /tmp/xyz) {}i.e. it checks both that the file exists and has non-zero size, which can be useful.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||