Trying to determine a cross-platform way of determining if a file path a user provides in a config file is absolute for the machine they are running the Perl code on. I'm not quite sure how to interpret the File::Spec documentation:
file_name_is_absolute Takes as its argument a path, and returns true if it is an absolute pa +th. $is_absolute = File::Spec->file_name_is_absolute( $path ); This does not consult the local filesystem on Unix, Win32, OS/2, or Ma +c OS (Classic). It does consult the working environment for VMS (see +file_name_is_absolute in File::Spec::VMS).
What does it mean when it says it does not "consult" the local filesystem? Will this function do what I need?
$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 Determining if file path is absolute by nysus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |