Geoffrey Young wrote: [snip]
if you're worried about the server part being called when the module is being loaded initially during a request (say, if someone didn't use PerlModule) then something like this might workmy $r_or_s = eval { Apache2::RequestUtil->request } || Apache2::ServerUtil->server; my $value = $r_or_s->dir_config($key) || $ENV{$key} || $default; or somesuch.
That'll do the trick. I was just to do it the hard way (by checking if we're starting) rather than just letting eval handle the failures.
Thanks Geoff, -=Chris
smime.p7s
Description: S/MIME Cryptographic Signature