Sorry, but I think you missed something:
a) You must NOT use File::Path->make_path if you don't want to create directories named 'File::Path'. You can use
use File::Path qw(make_path); make_path($dir);
or
use File::Path; File::Path::make_path($dir);
b) I can't see the reason for your chdir-problem from the three lines of code given. So you missed to provide some further context. At least you have to explain what you expected and what you got.
Regards
McA
In reply to Re^2: Recursive directories
by McA
in thread Recursive directories
by rustic
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |