Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask

Re^2: Numeric sorting WITHOUT <=>

by dsheroh (Parson)
on Oct 10, 2012 at 09:44 UTC ( #998186=note: print w/ replies, xml ) Need Help??

in reply to Re: Numeric sorting WITHOUT <=>
in thread Numeric sorting WITHOUT <=>

Don't really need the explicit cmp:

my @sorted = sort map { sprintf '%09d', $_ } keys %jetsons;

Comment on Re^2: Numeric sorting WITHOUT <=>
Select or Download Code
Replies are listed 'Best First'.
Re^3: Numeric sorting WITHOUT <=>
by GrandFather (Sage) on Oct 10, 2012 at 20:31 UTC

    But that's nearly half the length so it can't be near half so good. :-)

    True laziness is hard work

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://998186]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (3)
As of 2015-10-10 18:41 GMT
Find Nodes?
    Voting Booth?

    Does Humor Belong in Programming?

    Results (257 votes), past polls