in reply to Using Apache2::RequestRec and pnotes

You can't store anything but a string in notes. In pnotes, you can store a ref to a hash or an object or anything else perl can store.
  • Comment on Re: Using Apache2::RequestRec and pnotes

Replies are listed 'Best First'.
Re^2: Using Apache2::RequestRec and pnotes
by Krambambuli (Curate) on Apr 03, 2007 at 15:15 UTC
    Thanks, I've thought that will work like that, I'm however unsure about references to 'shared' variables hidden within the stored structures.

    But I guess I'm just a bit paranoic and most of the problems occuring with improper ways to share variables/structures within mod_perl are not as critical here, as long as I stay tied with one specific request.

    I'll definitely will need to play a bit with it myself in order to 'feel' it.

    Many thanks,
    Krambambuli
      I'm not sure what the "shared" references you're referring to are, but there is no sharing of notes or pnotes between child processes. It also gets cleaned up automatically at the end of the request, which is very convenient.