Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
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?
[PriNet]: ok, i'm stumped... how do you split a string in javascript when the string was joined with chr(255) in perl ? string.split( String.fromCharCod e(255)); does not work... (help)

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (2)
As of 2017-03-24 04:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (295 votes). Check out past polls.