Not sure if this is a bug or what. Running this on a mac but guessing results would be the same on *nix:
#! /usr/bin/env perl use strict; use warnings; use File::Spec::Win32; use File::Spec; my $nuts = File::Spec->catfile('blah', ''); print $nuts . "\n"; # prints "blah/" (note the slash) my $two_nuts = File::Spec::Win32->catfile('blah', ''); print $two_nuts . "\n"; # prints "blah" (no slash)
$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
In reply to File::Spec::Win32 returning different result than File::Spec when doing catfile with empty string by nysus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |