in reply to Re: Any way to simulate a Windows path handling for File::Spec without Windows?
in thread Any way to simulate a Windows path handling for File::Spec without Windows?
I originally had it split with the volume as a separate return value. See original code. But it turns out I don't need it. splitdir includes the volume in the returned array, which works for me.
catfile was needed on *unix to generate the slash when used with an empty string (but it does not work like that on Windows).
$PM = "Perl Monk's";
$MCF = "Most Clueless Friar Abbot Bishop Pontiff Deacon Curate Priest Vicar";
$nysus = $PM . ' ' . $MCF;
Click here if you love Perl Monks
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Any way to simulate a Windows path handling for File::Spec without Windows?
by jcb (Parson) on Sep 08, 2019 at 05:59 UTC | |
by nysus (Parson) on Sep 08, 2019 at 06:06 UTC | |
by jcb (Parson) on Sep 08, 2019 at 06:16 UTC | |
by nysus (Parson) on Sep 08, 2019 at 06:28 UTC |