On Tue, 28 Aug 2001, Gary Benson wrote:
 
> Is "my $localhost_name = Apache::TestConfig->default_localhost;" valid?
> Should you not do this:
> 
>     my $env = Apache::TestConfig->thaw;
>     my $localhost_name = $env->{vars}->{servername};

yeah, just trying to avoid thaw() multiple times.
my $localhost_name = Apache::TestRequest::vars()->{servername};

would be fine.

Apache::TestRequest caches the thaw so it only happens once per-process.


Reply via email to