Given a list of directories to be checked or made, this will return a list of directories made. (@dirs NOT @created) is the list of directories which already exist. If you @dirs don't have a full path, use chdir.
my @created = grep { (!-d) && mkdir($_,oct(777)) } @dirs;
In reply to Re: Checking for Directories
by Anonymous Monk
in thread Checking for Directories
by zdog
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |