Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: Regex help - butchering text into paragraphsby mwah (Hermit) |
on May 02, 2008 at 22:42 UTC ( [id://684274]=note: print w/replies, xml ) | Need Help?? |
Throop:
Is this the thing that can /should be done in a single golfed line? Alternatively, is there a module that I should be looking at? Is this part of a larger project? Then, golf wouldn't make much sense. A simple way, in addition to the solution already posted, would combine the keys into a search expression. From your description, it isn't completely clear (for me) what you are trying to do. I'll give my alternative below:
You could dump the result w/the following loop:
This would print then:
Regards mwa
In Section
Seekers of Perl Wisdom
|
|