Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
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 ( #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? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (1)
As of 2023-01-28 16:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?