Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

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."

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


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

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (8)
As of 2014-09-30 14:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (372 votes), past polls