Re: Application Configuration Across Sessions

"John R." <[email protected]>
Newsgroups gmane.comp.lang.perl.poe
Message-ID <[email protected]>
Nick Perez wrote:

> There are a couple of ways to do that. You could do some dependency
> injection on the constructed sessions so that they get their config
> info from the parent session. You could by convention, have each
> session know that the config information is stored in the parent
> session and therefore call $parent->get_heap(). You could have a
> lexical hash that is available to all of the sessions. Etc. Etc.
> 
> I think you will find a myriad of ways that other people are doing it.
> But I believe the dependency injection of configuration information is
> the most common.
> 

Thanks...

Between your suggestions and Rocco's I should be set.

John
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.