Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

Re: hash map to give preference to 1st match

by choroba (Cardinal)
on Jun 23, 2011 at 10:50 UTC ( [id://911054]=note: print w/replies, xml ) Need Help??

in reply to hash map to give preference to 1st match

Using the name "value" for a key is confusing, try to change it to something else (float?).
Hash variable cannot be used with round brackets (%result()).
Are you sure you store the whole list of the URL's into your values (i.e. you use Hash of Arrays, HoA)? If yes, just use $result{$float}[0] to retrieve the first value. Do not you overwrite an older value with a new one when storing the values?

Log In?

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

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (5)
As of 2024-04-22 09:06 GMT
Find Nodes?
    Voting Booth?

    No recent polls found