Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
On WINXP and previous Win versions the path is converted touse File::Spec; $bif_path = "/foo/go/do"; $bif_path = File::Spec->canonpath ($bif_path); print "canonpath: $bif_path\n"; $bif_path = File::Spec->catfile ('', $bif_path); print "catfile: $bif_path\n";
However, on Win7, the string is returned as"\\foo\go\do"
The single "\" reference fails on Win7, it still needs to be "\\"."\foo\go\do"
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Failure of catfile on Windows 7
by ikegami (Patriarch) on Mar 01, 2011 at 16:56 UTC | |
by Anonymous Monk on Mar 01, 2011 at 20:25 UTC | |
by ikegami (Patriarch) on Mar 01, 2011 at 18:35 UTC | |
Re: Failure of catfile on Windows 7
by furry_marmot (Pilgrim) on Mar 01, 2011 at 18:18 UTC | |
by ikegami (Patriarch) on Mar 01, 2011 at 18:50 UTC | |
by furry_marmot (Pilgrim) on Mar 01, 2011 at 22:14 UTC | |
by ikegami (Patriarch) on Mar 01, 2011 at 22:55 UTC | |
by furry_marmot (Pilgrim) on Mar 02, 2011 at 23:01 UTC | |
|