Since this seems to be a CGI::Session file from your previous posts, I would suggest that using the MySQL driver for CGI::Session would be an easier way to do this (or any of the other database drivers available on
CPAN. If you havent got an actual database, I suspect getting it to store in some CSV / XML format that DBI::AnyData can use is also possible.
PS: I still think you would be better off explaining the entire picture, and not just pieces of it.
C.