Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Get the Smallest Number

by si_lence (Deacon)
on Aug 11, 2009 at 12:36 UTC ( #787599=note: print w/ replies, xml ) Need Help??


in reply to Get the Smallest Number

I don't see an array in your data structure at all. It looks more like part of a 'Hash of Hashes'.
You first need access the data you are interested in (maybe using two nested foreach keys) and then split the string by |, capturing the number of interest and find the min.
If you show the code you have so far it would be much easier to provide you with more specific help.
cheers, si_lence


Comment on Re: Get the Smallest Number
Download Code
Re^2: Get the Smallest Number
by Anonymous Monk on Aug 11, 2009 at 15:17 UTC
    Why even if you have these two values at the end the IF statement still does work?
    if( 55.05 <= 0.00){ print "OK\n"; }else{ print "No\n"; }

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (5)
As of 2014-07-11 11:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (224 votes), past polls