in reply to Re: Having trouble with pperl (Persistent Perl) and CGI
in thread Having trouble with pperl (Persistent Perl) and CGI

I did not even know that. Nice. It explains, I think, the problem I've seen using CGI inline in TT2 templates from within Catalyst. [% USE CGI %] hangs the server (on submits IIRC) while [% USE CGI(foo) %], fake initializer, works fine. Now I know why. :)

Replies are listed 'Best First'.
Re^3: Having trouble with pperl (Persistent Perl) and CGI
by blahblahblah (Priest) on Apr 25, 2008 at 00:16 UTC
    This sounds a lot like what would happen if you had read STDIN already before calling new CGI(). If you just want to create a CGI object without it trying to automatically read the script's input, you can initialize it with an empty string: new CGI("").