Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

Re^2: Creating new folders

by Eagle_f91 (Acolyte)
on Feb 03, 2008 at 03:53 UTC ( #665793=note: print w/replies, xml ) Need Help??

in reply to Re: Creating new folders
in thread Creating new folders

Thanks I had forgoten about the die command, but in this case it did not help.

Replies are listed 'Best First'.
Re^3: Creating new folders
by grep (Monsignor) on Feb 03, 2008 at 04:09 UTC
    It's not really the die that's important. It's the test of file operation and the printing of $!. You could just as easily write:
    if (!-d "e:/web/public_html/eagle_f91/ffinfo/protected/images/$Game") +{ mkdir("e:/web/public_html/eagle_f91/ffinfo/protected/images/$Game" +) or print "$!\n"; }
    If there's an error it should populate $!, that error message will tell you what went wrong (generally). So it should either work or give you and error. So it has to help.

    One dead unjugged rabbit fish later...

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (3)
As of 2021-09-24 21:21 GMT
Find Nodes?
    Voting Booth?

    No recent polls found