Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^5: -s testing for empty file; works on local, but not on remote

by ikegami (Pope)
on Sep 27, 2011 at 19:06 UTC ( #928148=note: print w/ replies, xml ) Need Help??


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?


Comment on Re^5: -s testing for empty file; works on local, but not on remote
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://928148]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (10)
As of 2014-12-28 02:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (178 votes), past polls