more useful options | |
PerlMonks |
Re: (tye)Re: Quickie Question: search and replace problemby indigo (Scribe) |
on Apr 19, 2001 at 01:13 UTC ( [id://73666]=note: print w/replies, xml ) | Need Help?? |
All these do the escaping properly. But the code went like this:
The problem isn't simply bad escaping. Either $attempt gets munged, and the match fails, or you have to premunge $data to get $attempt right, and the match still fails. So /\Q$attempt\E/ really is the best way to go.
In Section
Seekers of Perl Wisdom
|
|