in reply to Re^2: mod_perl: globals and security question
in thread mod_perl: globals and security question
That does make more sense. I generally put that stuff in %ENV, so that both of them can read it. The environment variables don't persist between requests in mod_perl. Alternatively, I sometimes make a simple fetch/store API which uses $r->pnotes() under mod_perl and globals under CGI. (Hmm, possible CPAN module?)