in reply to mod_perl and CGI variable lifetime puzzle

You're creating a closure somewhere. You have code somewhere that looks like this:
my $q = CGI->new(); sub something { $q->param().... }
You need to explicitly pass the CGI object to each sub that uses it.

Replies are listed 'Best First'.
Re^2: mod_perl and CGI variable lifetime puzzle
by noslenj123 (Scribe) on May 13, 2005 at 22:26 UTC
    Okay, I'll go back through all the scripts and instantiate one instance of CGI in the main sub, and then passed it to any subs being called. Also, if I had any lingering CGI.pm calls using the old function oriented calls rather than the object oriented calls, might that cause an issue?
      The function syntax isn't a problem.