zakzebrowski has asked for the wisdom of the Perl Monks concerning the following question:
I have a block of code:
Thanks
Zak
----
Zak
Anyone knows why this code isn't dieing correctly? (Perl version 5.005_3 for solaris)? This is not a *huge* problem (most of the time I will be creating the directory), but I would to at least log the dir wasn't created for idiot checking.eval { mkdir $DIR_LOCATION, 0777 || die "sigh"; }; if ($@) { print "Never gets here to display error message."; }
Thanks
Zak
----
Zak
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: mkdir die
by blakem (Monsignor) on Oct 19, 2001 at 23:46 UTC | |
Re: mkdir die
by DrManhattan (Chaplain) on Oct 20, 2001 at 00:19 UTC | |
Re: mkdir die
by RhetTbull (Curate) on Oct 20, 2001 at 00:24 UTC | |
by zakzebrowski (Curate) on Oct 22, 2001 at 18:02 UTC |
Back to
Seekers of Perl Wisdom