Re: Application Configuration Across Sessions

2009-04-25 Thread Nick Perez
On Fri, 24 Apr 2009 19:32:11 -0500 johnr jo...@wowway.com wrote: Hello, What is the POE way of accessing application configuration across sessions? I was working with Config::General (storing config info in a session's heap). However, that is not accessible by other sessions. What is

Re: first poe program - request for review

2009-04-25 Thread Rocco Caputo
If CLIENTS held Client objects, you could avoid passing $client_id to everything. process_client_command() could be a Client method, as generate_response(). Perhaps: sub handle_requests { my $c = shift; my $mud_client = get_mud_client($c); $mud_client-start() if ( not

Re: Application Configuration Across Sessions

2009-04-25 Thread John R.
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