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

Re: Changing file permissions in perl

by pc88mxer (Vicar)
on Jul 17, 2008 at 12:49 UTC ( [id://698284]=note: print w/replies, xml ) Need Help??


in reply to Changing file permissions in perl

Try setting your "umask" with umask(0022). Alternatively, simply chmod the file after the mirror method returns:
$ua->mirror(..., $path); chmod 0755, $path;

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2024-04-20 02:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found