Re: Bug with cgi-header() + mod_perl ?

2009-02-14 Thread Patrick Galbraith
Perrin, Thanks - as soon as I read what you said, I looked at the code and saw I instantiated a CGI object at the top of the script, package-scoped so I wouldn't have to pass it between subroutines. I thought I would test this intuition by instantiating in the method that needed it, and pass

Re: Bug with cgi-header() + mod_perl ?

2009-02-14 Thread André Warnier
Patrick Galbraith wrote: [...] Hi. Less nice, less neat, less classic, terrible style, whatever you want, but which also works : # my nifty cgi-bin use strict; use warnings; { package MyOwn; no strict; $CGI = ''; } sub sub1 { $MyOwn::CGI = new CGI(); } sub sub2 { my $name =