use strict; use warnings; my $path = 'c:\abc\xyz'; $path =~ s/\\/\\\\/g; print $path; __END__ c:\\abc\\xyz
The double quotes interpolate. If you use strict and warnings, you will get a warning message.
On a side note, when posting, just include code within code tags, not all of your text.
In reply to Re: windows path problem
by toolic
in thread windows path problem
by anu_1
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |