![]() |
|
Do you know where your variables are? | |
PerlMonks |
Re: hash and array mismatchby GrandFather (Saint) |
on May 08, 2007 at 02:07 UTC ( #614082=note: print w/replies, xml ) | Need Help?? |
You are using the same key for multiple values. You will only retain the last value assigned to the hash for a given key. For example 'TOTAL QUALITY' has values 8 and 14, only 14 is retained. Most likely a hash is not appropriate for whatever you are trying to achieve. You could however:
Prints:
Which creates a list of positions for each key value. DWIM is Perl's answer to Gödel
In Section
Seekers of Perl Wisdom
|
|