A. Sinan Unur said:
There is no contradiction. When I write:
use File::Spec::Functions 'catfile';
my $path = catfile $install_dir, $conf_dir, $conf_file;
I know that no matter which my script is executed on, the correct
character(s) will be used, but I still cannot remember what those would be
on a VMS system.
A VMS Path would look like this:
USER:[DIR1.DIR2.DIR3]file.ext
The File::Spec function 'splitpath' will correctly split this into the
volume, directory and file part. Handling volumes correctly is another
important issue when trying to write portable code dealing with directory
structures.
Thomas
--
$/=$,,$_=<DATA>,s,(.*),$1,see;__END__
s,^(.*\043),,mg,@_=map{[split'']}split;{#>J~.>_an~>>e~......>r~
$_=$_[$%][$"];y,<~>^,-++-,?{$/=--$|?'"':#..u.t.^.o.P.r.>ha~.e..
'%',s,(.),\$$/$1=1,,$;=$_}:/\w/?{y,_, ,,#..>s^~ht<._..._..c....
print}:y,.,,||last,,,,,,$_=$;;eval,redo}#.....>.e.r^.>l^..>k^.-