Just another Perl shrine | |
PerlMonks |
Re: extracting from textby misc (Friar) |
on Dec 10, 2007 at 11:28 UTC ( [id://656093]=note: print w/replies, xml ) | Need Help?? |
Hi,
I'd like to suggest a simple approach -
It's more easy to change/understand if you read the code some time later.
It would be possible to do some cool constructs with map, hashes, ... However, if you have to change something later, something like this is much more easy to understand and debug. (Although unelegant ). It's also a matter of the needs you have.
HTH, Michael
In Section
Seekers of Perl Wisdom
|
|