Re: [cgiapp] Config::Simple

2002-03-21 Thread Eric Moore

In the past, I have done what Cory outlines

 From: Cory Trese [EMAIL PROTECTED]
 SNIP 
 
 # install global variable values from config file
 $service_name = %conf-{'service_name'};
 $service_url = %conf-{'service_url'};
 $session_life = %conf-{'session_life'};
 $session_context = %conf-{'service_id'};
 
  SNIP 

in HTML::Template by doing

while( ( $key, $value )  = each( %$conf ) ){
 $template-param( $key = $value );
}


How would I peform the above in CGI-APP  using the paired values from the
PARAMS parameter set in the cgi? (e.g. $myapp = MyApp-new(  PARAMS =
\%global_params)

Thanks, Eric.


-
Web Archive:  http://www.mail-archive.com/cgiapp@lists.vm.com/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: [cgiapp] Config::Simple

2002-03-20 Thread Mark Stosberg

Cory Trese wrote:
 
 Ditto.  At least it works for me right now ... but my app is currently still
 simple, I've only implemented 15/30 run modes and am storing only 4 things
 in my config, in the end I'll probably have like 30 or so.

I often have 20+ variables in my config files and this kind of system
still works well for me. I think it's scalable (at least to 30. :) 

  -mark

 . . . . . . . . . . . . . . . . . . . . . . . . . .
   Mark Stosberg  Principal Developer  
   [EMAIL PROTECTED]   Summersault, LLC 
   765-939-9301 ext 223   website development  
 . . . . . http://www.summersault.com/ . . . . . . .

-
Web Archive:  http://www.mail-archive.com/cgiapp@lists.vm.com/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]