Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Get biggest value from array

by larryk (Friar)
on Aug 25, 2002 at 09:27 UTC ( #192654=note: print w/ replies, xml ) Need Help??


in reply to Get biggest value from array

Update: Oops, just saw that theorbtwo had already done this one.
#!perl use strict; use warnings; my @array = 1..99; my $largest = (sort @array)[-1]; print $largest;
   larryk                                          
perl -le "s,,reverse killer,e,y,rifle,lycra,,print"

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (7)
As of 2016-06-25 19:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (327 votes). Check out past polls.