Sorry, I saved only half of the answer.
To do it in Perl I would try:
my %statuscount; foreach my $stat (@status) { $statuscount{$status}++; }
Careful with that hash Eugene.
In reply to Re: Counting elements in array and outputing the count and item
by psini
in thread Counting elements in array and outputing the count and item
by dmaranan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |