Re: Registry and mod_include - multiple invocations of a script in an SSI-parsed file

Dave Hodgkinson <[email protected]>
Newsgroups gmane.comp.apache.mod-perl
Message-ID <[email protected]>
On 11 Jan 2012, at 15:29, Mårten Svantesson wrote:

> Hi Brett,
> 
> My guess is that you run into a problem of the CGI module not resetting itself between executions of your code.
> 
> As a test you could try entering the line.
> 
> CGI::initialize_globals();
> 
> explicitly in your script before calling param().


Ooooh.

I have a situation where in a perfectly ordinary Apache::Registry script, sometimes
Template::Toolkit doesn't add the auto-headers and footers to the pages.

I wonder if abw doing something jiggy that might be upsetting the globals.

/me tries...

Wow. That did the trick!

Mårten, if we ever meet, I owe you lots of Aquavit or equivalent.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.