Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: perl chmod tells me file does not exist (but it does)

by Anneq (Vicar)
on May 17, 2013 at 22:30 UTC ( #1034036=note: print w/replies, xml ) Need Help??


in reply to perl chmod tells me file does not exist (but it does)

Sometimes your script may not be operating in the directory you think it is (e.g., script run under a web server), or there may be a typo in a file name, or some other problem, etc. Comment out the chmod line and try this to see if you get what you are expecting:

my $original_mode = (stat( $original_file ))[2]; my $target_mode = (stat( $target_file ))[2]; print "Original Filename: $original_file\nOriginal mode: $original_mod +e\n"; print "Target Filename: $target_filename\ntarget mode: $target_mode\n" +;

Anne

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (4)
As of 2022-01-24 14:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (64 votes). Check out past polls.

    Notices?