Your skill will accomplish what the force of many cannot |
|
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Basically, $data is intepreted as a string, and $attempt1 as a regex, so if you have special regex characters, they will never match up, no matter how you escape them.
To make a regex treat $attempt1 as a string, use \Q and \E: man perlre for more info. Updated: Added rant, as per tye :) In reply to Re: Quickie Question: search and replace problem
by indigo
|
|