G'day smturner1,
The code you posted should be giving warnings about my $ARCHIVE = ... appearing twice in the same scope. E.g.
$ perl -Mwarnings -e 'my $x = 1; my $x = 2;' "my" variable $x masks earlier declaration in same scope at -e line 1.
So, either that's not your actual code or you're hiding messages from us. Does autodie, for instance, provide feedback you're not showing?
You should check the File::Spec documentation. Your catpath() code does not match the documented syntax, i.e.
$full_path = File::Spec->catpath( $volume, $directory, $file );
See join for placing dots between your values.
Use a print statement to see the actual value of $ARCHIVE before calling make_path().
-- Ken
In reply to Re: Why can't I create a directory with File::Spec
by kcott
in thread Why can't I create a directory with File::Spec
by smturner1
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |