note
sauoq
<blockquote><em>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.</em></blockquote>
<p>Although, as [gjb] suggested, you can use [cpan://MLDBM] or you can use [cpan://Data::Dumper] or [cpan://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."</p>
<pre>
-sauoq
"My two cents aren't worth a dime.";
</pre>
229689
229714