in reply to Re: Directory creation in Perl using mkdir
in thread Directory creation in Perl using mkdir

Why do you need the variable $error? Can't you simply say:

mkdir $path; die "Cannot create directory $path : $!\n" unless -d $path;

? From what I see from the documentation, the -d operator doesn't change $!, does it?
-- 
Ronald Fischer <ynnor@mm.st>

Replies are listed 'Best First'.
Re^3: Directory creation in Perl using mkdir
by moritz (Cardinal) on Apr 04, 2011 at 10:28 UTC