in reply to -s switch in perl
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: -s switch in perl
by graff (Chancellor) on Jul 30, 2009 at 05:22 UTC |