Loading ...
Sorry, an error occurred while loading the content.

Re: How to attach a hashref or other data to the request object?

Expand Messages
  • Matisse Enzer
    Thank you. This works just fine. ... -- ... Matisse Enzer Hamilton Partners 707-431-4300 ext. 212 (office) 415-225-6703 (mobile)
    Message 1 of 8 , Sep 30, 2003
    • 0 Attachment
      Thank you.

      This works just fine.

      At 3:03 PM -0700 9/29/03, Daisuke Maki wrote:
      >Check out $r->pnotes().
      >
      > $r->pnotes( OurHash => { foobar => 1 } );
      >
      >--d
      >
      >Matisse Enzer wrote:
      >
      >>Is there an appropriate way in mod_perl 2 for me to take a hashref
      >>and somehow add it to the Apache request object so that Perl code
      >>later in the request handling process can access it, for example
      >>with:
      >> my $hash = $r->{OurHash};
      >>or something like that?
      >>
      >>Specifcally what i am trying to do is to take a hash created using
      >>Apache::Session (a tied hash) and have a reference to that hash be
      >>available in the Apache request object for the rest of the
      >>request's lifetime.


      --
      ------------------------------------------
      Matisse Enzer
      Hamilton Partners
      707-431-4300 ext. 212 (office)
      415-225-6703 (mobile)
    Your message has been successfully submitted and would be delivered to recipients shortly.