Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^3: Need help with script to create directories

by dakkar (Hermit)
on Jun 21, 2004 at 08:08 UTC ( [id://368386]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Need help with script to create directories
in thread Need help with script to create directories

From perldoc -f mkdir:

mkdir FILENAME,MASK
   Creates the directory specified by FILENAME, with permissions
   specified by MASK (as modified by "umask").

This means that, even if you specify 0777 as MASK, the actual permissions of the directory will be 0777 & umask. You can set the umask with the function of the same name in Perl or in the shell.

-- 
        dakkar - Mobilis in mobile

Most of my code is tested...

Perl is strongly typed, it just has very few types (Dan)

  • Comment on Re^3: Need help with script to create directories

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (4)
As of 2024-04-18 22:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found