Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
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 contemplating the Monastery: (5)
As of 2016-09-25 09:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (468 votes). Check out past polls.