[Speedycgi-users] "Cranky" SpeedyCGI(???)
Brought to you by:
samh
|
From: Edouard L. <lag...@ca...> - 2003-07-03 20:44:47
|
Dear SpeedyCGI users and developers, First, thank you to Sam Horrocks and everyone else who has gotten SpeedyCGI up and running. It is a great tool!! However, ... :-) having gotten my ecard application (Penguin Greetings) working SpeedyCGI for about 2 months now, I've run into a strange problem. I'm in the process of moving code into some Perl module libraries, and strangely, SpeedyCGI is acting like a sputtering car. The first attempt to invoke SpeedyCGI will fail with a "Premature ending of script headers" error for the browser and absolutely nothing in the http/ error_log besides that. Yet, if you involve the script a second time, it appears to run fine except that some of the initialization that should have been done on the first invocation was never done. I have fallen to the "last resort" strategy of using CGI::Carp and putting warnings everywhere. The top of my program is essentially this: #!/usr/bin/speedy -- -M20 -gpgreet use CGI::SpeedyCGI; use CGI qw(:standard escape); use CGI::Carp; warn "Just after CGI::Carp"; The warn statement is never printed on the first invocation, but is in subsequent runs. Has anyone run into a problem like this? Any thoughts on how to debug this sort of "crankyness?" Thanks in advance! Peace, Edouard :-) P.S. Yes, the program runs fine in straight CGI. ================================== Edouard Lagache Lead Developer, Penguin Greetings http://pgreet.sourceforge.net/ pgr...@ca... |