in reply to
Array question
Store the data in a hash, with Date+IP as the key and the repetition count as the value. When you enter an array item into the hash, you just add the count in the last column to the current value.
Comment on
Re: Array question
Replies are listed 'Best First'.
Re^2: Array question
by
injunjoel
(Priest)
on Sep 05, 2007 at 17:40 UTC
Great suggestion,
<shameless-plug>
Have a look at
The Uniqueness of hashes.
to see some examples of just this sort of thing.
</shameless-plug>
-InjunJoel
"I do not feel obliged to believe that the same God who endowed us with sense, reason and intellect has intended us to forego their use." -Galileo
[reply]
[d/l]
[select]
In Section
Seekers of Perl Wisdom