Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^2: Numeric sorting WITHOUT <=>

by dsheroh (Monsignor)
on Oct 10, 2012 at 09:44 UTC ( [id://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;

Replies are listed 'Best First'.
Re^3: Numeric sorting WITHOUT <=>
by GrandFather (Saint) 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?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (3)
As of 2024-04-25 19:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found