Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Array question

by moritz (Cardinal)
on Sep 05, 2007 at 10:47 UTC ( [id://637116]=note: print w/replies, xml ) Need Help??


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.

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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://637116]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (8)
As of 2024-04-19 15:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found