That will build a hash of arrays with the headers as keys. Things you might want to change are as follows:while ($data =~ s!(TI|AU|JN):(.*)?!!s) { push @{$sections{$1}}, $2; }
In reply to Re: How do I split a file into separate sections?
by chromatic
in thread How do I split a file into separate sections?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |