This works for me:
my $string = 'c:\\tmp/sup'; $string =~ s![\\/]!\\\\!g; print $string,$/; __DATA__ c:\\tmp\\sup
Once again, I am too late...
In reply to Re: substitute \ and / with \\ ?
by Mr. Muskrat
in thread substitute \ and / with \\ ?
by kirk123
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |