Welcome to the Monastery, davebock!
I can get it to work after making a couple of slight changes (moving the oct() call to inside of the call to make_path(), and fixing your compile-time errors). First, replace:
my $usedMode = oct($Mode);
with:
my $usedMode = $mode;
then, replace:
make_path( $dirPathName, { mode => $usedMode, error => \$err ) );
with:
make_path( $dirPathName, { mode => oct($usedMode), error => \$err +} );
Note that you don't need the intermediary $usedMode variable... it can be refactored out, and you can simply use $mode instead.
-stevieb
In reply to Re: Automatic type conversion in a sub parameter causing a problem
by stevieb
in thread Automatic type conversion in a sub parameter causing a problem
by davebock
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |