Arthur Bergman wrote: > > On torsdag, augusti 22, 2002, at 05:40 , Stas Bekman wrote: > >> >> Sometimes Perl invokes modules with underlaying C APIs which rely on >> certain environment variables to be set, if these variables are >> set in >> Perl and the glue code doesn't worry to set them on the C level, >> these >> variables might not be seen by the C level. This module shows what >> really the C level sees. >> >> > > Shouldn't the gluecode really do this?
Do what? Set env vars? Of course it should... if it's safe. But as you can see from the recent mod_perl thread about Oracle DBD not working with mod_perl 2.0 when %ENV was set in the registry script, since %ENV isn't tied to environ, because it's not thread safe. I wrote this module to debug the case, since I don't have Oracle to test with. This module was only needed for getenv() and dumpenv() so those who don't know C can at least debug things. But I've generalized it and added setenv() and unsetenv() while I was at it. __________________________________________________________________ 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