![]() |
|
The stupid question is the question not asked | |
PerlMonks |
Re: hash map to give preference to 1st matchby DrHyde (Prior) |
on Jun 28, 2011 at 10:04 UTC ( #911721=note: print w/replies, xml ) | Need Help?? |
You probably want to use a hash of arrayrefs:
Then to get the first URL that had a particular score ...
and to get all the URLs that had a particular score ...
And I'll echo what another monk said - please don't use $value or $val for the key in a hash, it's very confusing.
In Section
Seekers of Perl Wisdom
|
|