Eliya, I liked your first solution. All it needs is a way to initialize the top 20 array with the first 20 data points. Instead of checking if $e is not defined check if @top has fewer than 20 elements.
if ( @top < 20 || $score > $e->[1] ) {In reply to Re^2: Dealing with Hash Table
by Gulliver
in thread Dealing with Hash Table
by ŞuRvīvőr
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |