in reply to Re^4: -s testing for empty file; works on local, but not on remote
in thread -s testing for empty file; works on local, but not on remote
stat can fail for a number of reasons.
Add the following before the if (-s) line:
use Data::Dumper; print(Dumper(-s "/home/vcg/Documents/Trial/temp")); print(Dumper("$!"));
What's the output?
In Section
Seekers of Perl Wisdom