Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

Re: Re^2: (nrd) When does XML get to be too much?

by sauoq (Abbot)
on Jan 24, 2003 at 21:59 UTC ( #229722=note: print w/ replies, xml ) Need Help??

in reply to Re^2: (nrd) When does XML get to be too much?
in thread When does XML get to be too much?

I was originally going to use a DB_File (Any_DBM, actually) database, but as far as I know, they don't allow for HoHs.

Although, as gjb suggested, you can use MLDBM or you can use Data::Dumper or Storable to serialize your data structure by hand, the truth is that you don't even need an HoH in your case. You are storing the same data for each IP: visits and a timestamp. I would just store the two values in a single scalar delimited by a non-digit character of your choosing. (Consider using a comma, space, colon, semicolon, or pipe symbol as they are all commonly used for this kind of thing.) The right rule of thumb to follow in this case is "keep it simple."

"My two cents aren't worth a dime.";

Comment on Re: Re^2: (nrd) When does XML get to be too much?

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (2)
As of 2015-10-10 13:06 GMT
Find Nodes?
    Voting Booth?

    Does Humor Belong in Programming?

    Results (256 votes), past polls