http://qs321.pair.com?node_id=768122


in reply to Environment variables under mod_perl 2

Thanks Env::C was exactly what I was looking for! Knowing what the problem is, I found a fairly good explanation in the mod_perl troubleshooting guide: C Libraries Don't See %ENV Entries Set by Perl Code.

As far as the -T, I know it's ignored by mod_perl, but I sometimes run my scripts in a regular CGI environment, so I put it in habitually.