Do you know where your variables are? | |
PerlMonks |
Re: -s switch in perlby philipbailey (Curate) |
on Jul 29, 2009 at 17:03 UTC ( [id://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
|
|