use Sort::Key::Top qw(rukeytop); # ru => means reverse order and sorting keys are unsigned integers my @recent = rukeytop { $out_hash{$_}{EPOCH} } 10 => keys %out_hash;
In reply to Re: How to print the 10 most recent (epoch) keys in a hash when epoch is not the key
by salva
in thread How to print the 10 most recent (epoch) keys in a hash when epoch is not the key
by kevyt
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |