in reply to Re: windows perl and paths
in thread windows perl and paths
... 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: <%-{-{-{-<
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: windows perl and paths
by ww (Archbishop) on Nov 19, 2016 at 19:03 UTC | |
by AnomalousMonk (Archbishop) on Nov 19, 2016 at 19:59 UTC | |
by Athanasius (Archbishop) on Nov 20, 2016 at 04:02 UTC | |
by eyepopslikeamosquito (Archbishop) on Nov 20, 2016 at 05:37 UTC |