You might read the data in as records, rather than one line to split.
{ local $/="Index: "; dump { map { /(.+)/ => [/^interesting line (.+)/mg ] } (<DATA>)[1,-1 +] } }
In reply to Re: Golf challenge: Line-based parsing
by hbm
in thread Golf challenge: Line-based parsing
by v_ryan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |