Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^4: getting the highest value in a simpler way

by uksza (Abbot)
on Dec 19, 2004 at 15:34 UTC ( #415991=note: print w/replies, xml ) Need Help??


in reply to Re^3: getting the highest value in a simpler way
in thread getting the highest value in a simpler way

Hey!

I understand!! ;-)
So, in exmaple:
my $x = 5 my $y = 10 my $highestvalue = [ $x => $y ] -> [ $x <= $y ] #we have @aray(5,10) and because (5 <= 10) it returns 1, so $highestvalue = aray[1] thats mean 10 in this example, right?

Eh, nice trick... ;-)
Thanks for you reply.
Uksza

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://415991]
help
Chatterbox?
[james28909]: ok, i think im going to dive on into OO. i need to keep track of users in a program i have and the easiest way seems to be OO. does anyone have a good site that they knowof for someone wanting to start in O programming?
[karlgoethebier]: james28909: http://modernperlb ooks.com/books/ modern_perl_2016/ 07-object-oriented -perl.html# T2JqZWN0cw

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (14)
As of 2017-05-25 16:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?