|
|
| Keep It Simple, Stupid | |
| PerlMonks |
Re^3: qr// for Expect.pm problemby AnomalousMonk (Prior) |
| on Jun 25, 2011 at 21:17 UTC ( #911407=note: print w/ replies, xml ) | Need Help?? |
|
Go step by step. (And, of course, understand each step.) AFAIU, the original source string is something like '+fo\o*@P@*b\ar+', in which all metacharacters must be metaquoted, but in which there is a '@P@' sub-string that must also be converted into an actual regex pattern. Studying and experimenting with double- and single-quoting rules will be very helpful.
It's also worth remembering that while the q{} single-quote operator doesn't interpolate, it does do a bit of escaping WRT the \ backslash character, e.g.:
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||