Actually the normalisation substitution ($line =~s/\\/\//g;) should be first so that either form of path separator can be used for input and successfully matched later on against a normalised match string using / instead of \.
In reply to Re^2: Not able to replace to directory paths
by GrandFather
in thread Not able to replace to directory paths
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |