laziness, impatience, and hubris | |
PerlMonks |
Re: Regex Word Pairsby Joost (Canon) |
on Aug 15, 2007 at 23:20 UTC ( [id://632886]=note: print w/replies, xml ) | Need Help?? |
Well that solution is pretty direct.
You could go (almost) without regexes and just get the pairs yourself - at the cost of some memory (since you need to store all the separate words): update: I'm sure there's a way to get rid of the intermediate @words array, I'm just not sure the code would get any clearer.
In Section
Seekers of Perl Wisdom
|
|