in reply to Re: Perl appending \ or / based on windows or linux
in thread Perl appending \ or / based on windows or linux
I second this.
use File::Spec::Functions; my $path = catfile("xyzz", "qwen", "defs", "asd"); # $path is now "xyzz/qwen/defs/asd" on most systems, # but on Windows it'll have backslashes instead # and I think on old MacOS Classic systems it would # have colons or something. Don't ask about VMS.