Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
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?
[Corion]: Meh. There is no nice way to have "old" CGI (3) forward compatible with "new" CGI (4) with regards to ->param() in list context, is there? I could (and have) monkeypatch CGI to have *CGI::multi_param ||= \&CGI::param;, but maybe there is ...
[Corion]: ... a better approach?

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (7)
As of 2018-06-24 18:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?



    Results (126 votes). Check out past polls.

    Notices?