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{/}{\\};
In reply to Re: Regular Expressions Problem
by eye
in thread Regular Expressions Problem
by SteveS832001
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |