httpd-test-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stas Bekman <s...@stason.org>
Subject Re: Apache-Test and Cwd
Date Wed, 28 Jan 2004 22:50:37 GMT
David Wheeler wrote:
> On Jan 28, 2004, at 2:21 PM, Stas Bekman wrote:
> 
>> Then for now I'll just use:
>>
>>   my $serverroot = Apache::Test::config()->{vars}>{serverroot};
> 
> 
> Surely you mean
> 
>   my $serverroot = Apache::Test::config()->{vars}->{serverroot};
> 
> although this should work, too:
> 
>   my $serverroot = Apache::Test::config->{vars}{serverroot};

Yes, of course ;)

>> untill everybody agrees on what's not striking. The above approach 
>> will always work.
> 
> 
> AUTOLOAD is okay with me. It's a nice way of getting everything, even if 
> things change in the future.

Or we can just add

sub Apache::Test::serverroot { Apache::Test::config->{vars}{serverroot}; }

to start with, if Geoff is unhappy about AUTOLOAD. then we could expand it to 
add a few more shortcuts for usefull config directives. I'm not sure whether 
they should be exportable though.

__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com

Mime
View raw message