On Thu, 28 Oct 1999, John Siracusa wrote:

> On 10/28/99 1:31 PM, Ken Y. Clark wrote:
> > for what it's worth, here's what i do:
> [snip]
> > my $err = $r->pnotes(ERROR_NAME) or return OK;
> 
> Speaking of pnotes(), how stable, API-wise, is it?  It isn't documented
> at all in the O'Reilly Apache Modules book, but I was very happy to find
> it in the Apache.pm docs.
> 
> -John

pnotes seems stable to me.  i believe it's capable of holding some pretty
dense data structures -- surely much more than my measly error
string.  one note, however: "ERROR_NAME" is a string constant i define in
a base object.  
e.g., "use constant ERROR_NAME => 'xFoo-Error'"

when i tried to assign my error intothe pnotes hash with the comma operator 
e.g., "$r->pnotes(ERROR_NAME =>$err)"  
i got errors, and i don't know why.  

ky

Reply via email to