http://www.perlmonks.org?node_id=10248


in reply to PerlMonks Newest 10 Nodes Grabber

Nice Snippet, I really should get into LWP::Simple. One thing I noticed though.
(reverse sort {$a <=> $b }keys %node)[0..9]
Can be achived without the explicit reverse just by changing the order of $a and $b in the sort subroutine.
(sort {$b <=> $a }keys %node)[0..9]
Sorry to be pedantic, it was bugging me :)