Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: mkdir die

by blakem (Monsignor)
on Oct 19, 2001 at 23:46 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://120124]
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-19 20:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found