Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: sort an array with +ve & -ve numbers in it

by vinoth.ree (Monsignor)
on Apr 03, 2009 at 10:01 UTC ( [id://755222]=note: print w/replies, xml ) Need Help??


in reply to sort an array with +ve & -ve numbers in it

You can also get the minimum value by using the

$#sorted

This will hold the last element's index in the array

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (5)
As of 2024-04-18 18:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found