As long as the error message contains the word "exists", it will just ignore the error and continue on. I tested this case, and it worked fine for me. If it doesn't work for you, I'm curious what error message it prints...if ($! !~ /exists/i) { die "Couldn't mkdir($dirsofar): $!"; }
In reply to Re: Re: Re: Help making a directory tree
by sgifford
in thread Help making a directory tree
by GaijinPunch
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |