On Wed, 19 Jan 2000, Richard L. Goerwitz wrote:
> Before I turn everything inside out, let me ask a quick question: Has
> anyone encountered problems using CGI and CGI::Cookie with mod_perl? The
> Problem I am noticing emanates from CGI->new(). Here's the section of
> code:
>
> if ($MOD_PERL) {
> Apache->request->register_cleanup(\&CGI::_reset_globals);
> undef $NPH;
> }
>
> The error I'm seeing is (taken from my Apache log files):
>
> Wed Jan 19 11:33:45 2000] [error] Can't call method "register_cleanup" on an
> undefined value at /usr/lib/perl5/5.00503/CGI.pm line 263.
>
perhaps you should call
Apache->request->new($r)->register_cleanup(\&CGI::_reset_globals);
??
just a thought.
ky