Good for you. Looks like you are working on Australian HIC data to me? Please note that you should inculde some data validation for the line types 10 and 20 - it is possible that the respective REs will not match so @data will be empty. I just assume it worked for the sake of brevity. Something as simple as die "Match failed:\n$line\n" unless @data might do.
cheers
tachyon
In reply to Re^3: Re-formatting multi-line records
by tachyon
in thread Re-formatting multi-line records
by kerrya
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |