in reply to PerlMonks Newest 10 Nodes Grabber
Can be achived without the explicit reverse just by changing the order of $a and $b in the sort subroutine.(reverse sort {$a <=> $b }keys %node)[0..9]
Sorry to be pedantic, it was bugging me :)(sort {$b <=> $a }keys %node)[0..9]
|
---|
Replies are listed 'Best First'. | |
---|---|
RE: RE: PerlMonks Newest 10 Nodes Grabber
by httptech (Chaplain) on May 05, 2000 at 00:10 UTC |