There's more than one way to do things | |
PerlMonks |
Re: Unable to extract matched string from inputby drmrgd (Beadle) |
on Sep 25, 2013 at 10:19 UTC ( [id://1055647]=note: print w/replies, xml ) | Need Help?? |
Rather than splitting on whitespace since there is whitespace in the descriptions as well, why not just split the whole data chunk with a regex from the start. Assuming that your entries are always formatted with the chr, start, end, and description, you could do something like:
In Section
Seekers of Perl Wisdom
|
|