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 reply to Re: -s switch in perl
by philipbailey
in thread -s switch in perl
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |