in reply to
Thanks for the responses but I guess there's a bit you still miss.
I agree on the fact the make_path() will take one more argument though, my concern is why I do get different results if I do chdir and I when I don't after this line ?
And, of course I have the $path to be created defined somewhere before.
The reason I have called the subroutine as a class method was in first place due to the error:
Undefined subroutine &main::make_path called at
when I go with:
To fix this I had to either:
use File::Path 'make_path';
or, to call it as a class method.