in reply to Checking for Directories
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;
|
|---|