So will mp2 pnotes eventually return APR::Table or will it continue to
function as it does now (which is the same as mp1)?

-----Original Message-----
From: Stas Bekman [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 23, 2004 11:57 AM
To: Kreimendahl, Chad J
Cc: [EMAIL PROTECTED]
Subject: Re: Pnotes in apache2

Kreimendahl, Chad J wrote:
> Well, apparently I was using the mp1 method to set the stuff in my
Fixup
> handler... which is the part that is contrary to how the documentation
> says it works.   Instead of returning an Apache::Table object, it
> returns the exact same was as it had in mp1... 

> sub handler {
>       my $r = shift;
> 
>       $r->pnotes('key' => "value");
>       
>       return OK;
> }
> 
> 
> By the documentation I assumed the following was the correct way...
> 
>       my $atref = $r->pnotes();
>       $atref->set('key',"value");

it's APR::Table in mp2. Quite a few methods return the same object,
which can 
also be used as a tied hash. It's documented in details here:
http://perl.apache.org/docs/2.0/api/APR/Table.html



-- 
__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com


--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html

Reply via email to