Skip to main content.
home | support | download

Back to List Archive

Re: search.cgi bug w.r.t. mod_perl?

From: Bill Moseley <moseley(at)not-real.hank.org>
Date: Tue Jun 01 2004 - 06:32:56 GMT
On Mon, May 31, 2004 at 10:51:59PM -0700, Greg Fenton wrote:
> Changing the declaration of the "cached" variables from:
> 
>    my ( ..., $swish, $highlight_object, ...);
> 
> to 
> 
>    our ( ..., $swish, $highlight_object, ...);
> 
> seems to make the problem disappear.  I've made all "my" declarations
> in this script "our" instead...though this may not be necessary.

Just the ones that are used for caching between requests.

> I'd be very happy to hear that I'm wrong on this...or be given a better
> solution than the one above.

I notice that problem a week or so ago when running search.cgi using
SpeedyCGI.  I've never run the script under mod_perl so I'm glad you
mentioned this.



-- 
Bill Moseley
moseley@hank.org
Received on Mon May 31 23:32:57 2004