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:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com

Reply via email to