... the following are equivalent:
my $wilsonstiff = "Z:\/Partners\/Wilsons\/2push_test";
my $wilsonstiff = 'Z:\Partners\Wilsons\2push_test';
I don't understand that statement:
c:\@Work\Perl>perl -wMstrict -le "my $x = qq{Z:\/Partners\/Wilsons\/2push_test}; my $y = 'Z:\Partners\Wilsons\2push_test'; ;; print qq{'$x' '$y'}; die 'not equivalent!' unless $x eq $y; " 'Z:/Partners/Wilsons/2push_test' 'Z:\Partners\Wilsons\2push_test' not equivalent! at -e line 1.
But I completely agree with you and stevieb that Perl understands forward slashes in paths under Windows perfectly well:
So I don't really understand the OP...c:\@Work\Perl>perl -wMstrict -le "my $path = 'c:/@Work/DMD2/learn'; ;; chdir $path; print for grep -d, glob 'w*'; " wc weather_report writef_format
Give a man a fish: <%-{-{-{-<
In reply to Re^2: windows perl and paths
by AnomalousMonk
in thread windows perl and paths
by flieckster
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |