Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

Re^2: printing largest hash value

by tomhukins (Curate)
on Feb 22, 2005 at 09:40 UTC ( #433299=note: print w/replies, xml ) Need Help??

in reply to Re: printing largest hash value
in thread printing largest hash value

Avoid rearranging the elements in an array you've just sorted.

Instead of reverse sort { $b <=> $a } keys %hash, write sort { $a <=> $b } keys %hash. The second approach reads more clearly and runs more quickly.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://433299]
[erix]: (but then there's always a next (im)possible goal)
Corion avoids running by starting on time
[choroba]: my phone showed me 1 hour 10 km which was my goal, it changed a bit after uploading to the website
[erix]: choroba I believe you ;)
[1nickt]: Corion I assume you are talking about Retry? Attempt doesn;t offer callbacks and has a much simpler interface. (Also written by someone I trust...)

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (8)
As of 2017-05-24 12:56 GMT
Find Nodes?
    Voting Booth?