- or download this
# ==> $keyptr, @inputs as in your code
...
push @hits, { /($rg):(.+?)(?=(?:$rg)|$)/g } for @inputs ;
# thats it
- or download this
...
for my $rec (@hits) {
...
print "$_ => $rec->{$_}\n" for sort keys %$rec
}
...
- or download this
====
ANALYSIS => yada ^M yada
...
DEFERRED => blahblah ^M blah ^M
NAME / NUMBER => John 369
REMARKS => Yada2