Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: mkdir die

by blakem (Monsignor)
on Oct 19, 2001 at 23:46 UTC ( #120124=note: print w/replies, xml ) Need Help??


in reply to mkdir die

try
mkdir $DIR_LOCATION, 0777 or die "sigh";
Your original code was being parsed as:
mkdir $DIR_LOCATION, (0777 || die "sigh");
Update: I got pulled into a meeting before I could elaborate, but others have now explained it nicely.

-Blake

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (7)
As of 2019-10-21 21:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?