![]() |
|
We don't bite newbies here... much | |
PerlMonks |
Re: hash map to give preference to 1st matchby choroba (Cardinal) |
on Jun 23, 2011 at 10:50 UTC ( #911054=note: print w/replies, xml ) | Need Help?? |
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?
In Section
Seekers of Perl Wisdom
|
|