go ahead... be a heretic | |
PerlMonks |
processing key value pairs of a hashby lomSpace (Scribe) |
on Apr 14, 2009 at 20:03 UTC ( [id://757478]=perlquestion: print w/replies, xml ) | Need Help?? |
lomSpace has asked for the wisdom of the Perl Monks concerning the following question:
Hello! For each key name/id, I want to do the following: 1. Count keys with no values above pass4 (pass1 to 3 are fine, 4 to fail are bad). Using the above example, the key 'Eif2b2' would have only 1 value below pass4, that value would be 'pass2', and the key '49334' would have 1 value below 'pass4', 'pass1'. The total for keys with no values above pass4 would be two. The next count would be two also, because after each value, for the above mentioned keys, there would be one value remaining after removing everything above 'pass4'. Here is my code: I would appreciate the monks direction.
Back to
Seekers of Perl Wisdom
|
|