Hello flieckster,
You only have to escape the backslashes if the string is double-quoted. So if you don’t need interpolation, the following are equivalent:
my $wilsonstiff = "Z:\/Partners\/Wilsons\/2push_test"; my $wilsonstiff = 'Z:\Partners\Wilsons\2push_test';
But as stevieb says, Windows understands forward slashes anyway, so you can just say:
my $wilsonstiff = "Z:/Partners/Wilsons/2push_test";
and it will still work, and allow variable interpolation if needed. For the various quoting options in Perl, see perlop#Quote-Like-Operators.
Hope that helps,
| Athanasius <°(((>< contra mundum | Iustus alius egestas vitae, eros Piratica, |
In reply to Re: windows perl and paths
by Athanasius
in thread windows perl and paths
by flieckster
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |