in reply to Re: Perl appending \ or / based on windows or linux
in thread Perl appending \ or / based on windows or linux
That's
my %separators = ( linux => '/', MSWin32 => '\\', darwin => '/', );
There's other possible values, but the script could be restricted to run on only the "supported" platforms via
die "This script doesn't yet run on $^O\n" unless $separators{$^O};
|
|---|