This type of structure would allow you to build your structure and then you can sum your values over the files by summing for each hash an element of the array (keys %hash).while (<$FILE>){ if (/^\d/){ # new entry, sum values with those of $hash{$id}}and increment +$hash{$id}->count } elsif(/^\s+ID/){ @fields=split /\s+/; $id=$fields[3]; } ...
Edit: fixed elsif typo Transient pointed out below.
In reply to Re: Process Log Files - Join Log entry pairs
by Utilitarian
in thread Process Log Files - Join Log entry pairs
by gulden
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |