$_{$_}++ for @array; print ( ( sort{ $_{$b} <=> $_{$a} } keys %_ )[0] );
*Note: %_ isn't guaranteed to be around forever :)
Jasmine
In reply to Re: finding the most popular in array
by Jazz
in thread finding the most popular in array
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |