Instead of using `mkdir -p $dir` use the mkpath function in File::Path.
In reply to Re: problem in checking if directory exists
by jwkrahn
in thread problem in checking if directory exists
by denzil_cactus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |