Why do you need the variable $error? Can't you simply say:
? From what I see from the documentation, the -d operator doesn't change $!, does it?mkdir $path; die "Cannot create directory $path : $!\n" unless -d $path;
In reply to Re^2: Directory creation in Perl using mkdir
by rovf
in thread Directory creation in Perl using mkdir
by sselva
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |