I just looked at Apache::Session::BerkeleyDB and some other modules. It seems like all of them tie a hash to a disk file. I guess what I'm trying to do is something slightly different. I want to store multiple sessions in a single file... and then I want to be able to create a session object that a client would use that would only use data from a single session (single anynymous hash, referenced by session id). If you look at the code I provide you'll see what I'm trying to do.

My problem is that I don't know how make the top level of hash notice that something had changed on the lower level, so that it updates the file on the disk. I'm looking for ideas at this point.

But in any case, thank you for the hints to the modules that do similar work I might use them for some of the future projects.


In reply to Re: Re: Re: Re: Problem storing value in persistent hash with MLDBM by relax99
in thread Problem storing value in persistent hash with MLDBM by relax99

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.