Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
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?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://928148]
help
Chatterbox?
[LanX]: a friend of mine learned French with her African boyfriend ... I have to force my stop grinning when I hear a little blonde who adopted that accent
LanX .oO( *you* don't exist, I'm only messaging to *me* self)
LanX will abandon FF soon

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (11)
As of 2017-03-27 16:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (320 votes). Check out past polls.