in reply to Perl appending \ or / based on windows or linux
Hi,
probably with something like that:
my %seperators = ( 'Linux' => '/', 'MSWin32' => '\\', 'MacOS' => '/', ); my $op = quotemeta($seperators{$^O} || '/');
Regards
McA
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Perl appending \ or / based on windows or linux
by Anonymous Monk on Oct 07, 2014 at 18:50 UTC |