in reply to Re: Determining if file path is absolute
in thread Determining if file path is absolute

OK, thanks for the additional clarification. I just need to verify that it looks like an absolute path. I was worried that the documentation was trying to say that if it looked like an absolute path on a local machine it might not look absolute on another machine.

$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

  • Comment on Re^2: Determining if file path is absolute

Replies are listed 'Best First'.
Re^3: Determining if file path is absolute
by haukex (Archbishop) on Nov 04, 2018 at 09:04 UTC
    I was worried that the documentation was trying to say that if it looked like an absolute path on a local machine it might not look absolute on another machine.

    You don't need to worry, unless those two machines are on different OSes, e.g. Windows vs. *NIX, since File::Spec loads the appropriate OS-specific module under the hood. On a *NIX system, it will say C:\\foo isn't absolute (on a Windows system, it'll still say /foo is absolute).