in reply to Re: Re: Persistent database connections show incorrect results
in thread Persistent database connections show incorrect results

You have am unintentional closure, created by using subroutines that refer to lexicals declared outside their scope. This is a known problem with Apache::Registry (but not with standard mod_perl handlers written to the mod_perl API). You can fix it by moving the CGI parameter code inside the init sub.

For more on this topic, see the guide. Also, turn on warnings use full strict (not just vars) to catch this sort of problem.

  • Comment on Re: Re: Re: Persistent database connections show incorrect results

Replies are listed 'Best First'.
Re: Re: Re: Re: Persistent database connections show incorrect results
by PB (Initiate) on Apr 17, 2002 at 21:25 UTC
    Hi Perrin

    That solved it, it makes sense now.

    Thanks a million!
    Paul