Stas Bekman wrote: > 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};
the idea is to get away from that - it's way too verbose to be conventient. >> 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. whatever is fine - AUTOLOAD was an idea, as was exporting variables. in the end it really doesn't matter much. --Geoff