|
|
| Pathologically Eclectic Rubbish Lister | |
| PerlMonks |
Re: How to substitute a string containing "\" with same string in quotes.by Punitha (Priest) |
| on Oct 24, 2008 at 08:48 UTC ( #719287=note: print w/ replies, xml ) | Need Help?? |
|
Hi Please note that in your example coding the '$sting' and '$substing' are misspelled in some occurances, to avoid this use 'use strict;' You can escape those slashes in the matching string by using '\Q and \E' like
Punitha
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||