On Fri, 8 Dec 2000, Doran L. Barton wrote:
> I've got information stored in a DBI-accessible database. I would like to
> read this information from the database and populate an object with the
> data (really just a tree of hashes). This database "dump" into the object
> should occur at child-init (so, I'm guessing with a PerlChildInitHandler 
> directive). Then, I need to use the object functions/methods to navigate 
> the data in a content handler.
> 
> I tried passing the object using $r->notes(), but it didn't work. Then I
> read somewhere the data in $r->notes() is destroyed after each request- so
> of course that isn't going to work. 

Just put it in a global.

$Cached::Data::Thingy = $my_object;

- Perrin


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to