Return to Snippet

Revision: 38914
at April 29, 2011 07:01 by alfirth


Updated Code
use File::Path #core module

local $@;
eval {mkpath('./foo')};
if ($@) { die "failed to create dir $@\n";}

Revision: 38913
at January 10, 2011 10:22 by alfirth


Initial Code
local $@;
eval {mkpath('./foo')};
if ($@) { die "failed to create dir $@\n";}

Initial URL


Initial Description


Initial Title
mkdir eval try catch

Initial Tags


Initial Language
Perl