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

Re: How do I find the biggest number in an array of numbers.

by hawson (Monk)
on Jan 27, 2001 at 21:43 UTC ( [id://54762]=note: print w/replies, xml ) Need Help??


in reply to How do I find the biggest number in an array of numbers.

Answer is in $max.
map { $max=$_ if $_>$max } @list;

Originally posted as a Categorized Answer.

Log In?
Username:
Password:

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

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

    No recent polls found