use feature qw( say ); use List::Util qw( max ); ++$counts{$_} for @codes; my $max = max values(%counts); say grep $counts{$_} == $max, keys(%counts);
In reply to Re: find maximum occuring element in a array
by ikegami
in thread find maximum occuring element in a array
by capriguy84
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |