Syntactic Confectionery Delight | |
PerlMonks |
Re^9: using hashesby kennethk (Abbot) |
on Sep 27, 2013 at 21:26 UTC ( [id://1056080]=note: print w/replies, xml ) | Need Help?? |
No, but they are being marked as word boundaries, and so they pass the regex I gave before. For the situation you've described, the only obvious solution I can see is to traverse the key list from long to short as I've shown in Re^5: using hashes. Things get messy with replacement lists when your keys are not independent. #11929 First ask yourself `How would I do this without a computer?' Then have the computer do it the same way.
In Section
Seekers of Perl Wisdom
|
|