Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: sorting an array with decimal points

by salva (Canon)
on Jan 15, 2018 at 07:51 UTC ( [id://1207263]=note: print w/replies, xml ) Need Help??


in reply to sorting an array with decimal points

You can also use Sort::Key:
use Sort::Key qw(nkeysort); # the 'n' is for numeric my @sorted = nkeysort { substr $_, 6 } @array;

Log In?
Username:
Password:

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

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

    No recent polls found