not possibly better but another way...%hash = map {$_=>$c{$_}++} @a; foreach (keys %d) {print "$_ occurs $c{$+}\n"};
In reply to Re: Counting occurances
by LeGo
in thread Counting occurances
by fundflow
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |