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
In reply to Re: How to create a non uniform multi-dimention array with push?
by hdb
in thread How to create a non uniform multi-dimention array with push?
by shaialo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |