Q: Perhaps you ought to be increasing {TTAT}{I1}, ie {$item2}{$tid}
A: I can't do that, cause it will miss counting "TTTT". if what you mean is changing them to this:$$transaction_map_ref{$item2}{$tid}++;
Q:or possibly {TTTT}{I2}?
A:I don't get what you mean by that. What's the difference with the above statement.
Sorry..I'm rather slow here..
Q:can you have repeated elements in your array, and if so, what should be the behaviour?I hope that clarifies the problem.
A: Yes if that's the case, as long as condition "hd<=$d", they should be counted.
In reply to Re^2: Element Count from Array to HoH
by monkfan
in thread Element Count from Array to HoH
by monkfan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |