in reply to CGI chat room problem

The easiest way, that I use quite often to cache/expire, data is using File::Cache, or its more modern cousin, Cache::Cache. They're both relatively easy to use.

It'd be also fairly easy to do it using DB_File (or the like), but you'd have to do the math yourself (File::Cache is a nice ready-made solution that works very well, while Cache::Cache is also good, but has some portability issues yet to be worked out).

Enjoy.

 
______crazyinsomniac_____________________________
Of all the things I've lost, I miss my mind the most.
perl -e "$q=$_;map({chr unpack qq;H*;,$_}split(q;;,q*H*));print;$q/$q;"

  • Comment on (crazyinsomniac: File::Cache) Re: CGI chat room problem