Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
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 studying the Monastery: (8)
As of 2015-07-06 22:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (83 votes), past polls