Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

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

by uksza (Monsignor)
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


Comment on Re^4: getting the highest value in a simpler way
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://415991]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (11)
As of 2015-07-06 15:11 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 (77 votes), past polls