in reply to Regular Expressions Problem
The "tr" command is usually more efficient for character substitutions. You can also use a delimiter other than slash (/) as GrandFather suggested. In this instance, I prefer using paired delimiters like:$Doc =~ tr/\//\\/;
$Doc =~ tr{/}{\\};
|
|---|