Geoffrey Young wrote:

Stas Bekman wrote:

David Wheeler wrote:


On Jan 23, 2004, at 12:21 PM, Stas Bekman wrote:


If you really want to, we could install Apache::Test::AUTOLOAD
which will map $AUTOLOAD to
Apache::Test::config()->{vars}->{$AUTOLOAD}, so you could say:

Apache::Test::serverroot



Or, I imagine,

Apache::Test->serverroot


Yes, of course, thanks for the correction.


That's kind of cool.


;)

I suppose that's similar to what Geoff has suggested.


any way you want to do it is fine with me, so long as these variables are
easy for the end user to get to.  AUTOLOAD is striking me as a bit much at
the moment, but I guess it's ok.

Then for now I'll just use:

  my $serverroot = Apache::Test::config()->{vars}>{serverroot};

untill everybody agrees on what's not striking. The above approach will always work.

__________________________________________________________________
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