in reply to How to create a non uniform multi-dimention array with push?

I would usually use a hash for such a task. Have a look at the following pseudo code:

my %report; for my $line (<LOGFILE>) { ... # extract error type and time from $line here ... $report{$errortype}{...time rounded to the previous 10 mins...}++; } # print table here