Hi,
probably with something like that:
my %seperators = ( 'Linux' => '/', 'MSWin32' => '\\', 'MacOS' => '/', ); my $op = quotemeta($seperators{$^O} || '/');
Regards
McA
In reply to Re: Perl appending \ or / based on windows or linux
by McA
in thread Perl appending \ or / based on windows or linux
by sravs448
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |