Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
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"


Comment on Re: Get biggest value from array
Download Code

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: (5)
As of 2014-08-21 09:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (129 votes), past polls