Hi,

 In order for this to work I
need to prevent the CGI::header
from printing automatically.

What's the best way to do this?


You could overload run(), set the env variable, call SUPER::run() and grab the output, filter it, or delay printing for stdout for later. Note that this is the only print in the entire module. This seems programmatically more clean than cutting your program short at 'exit' and luckily doesn't require any changes to the standard CGI::App code. Good luck!

I think the easiest way is to just overload _send_headers() like this:

sub _send_headers{
	return '';
 }

in your application module.

Cheers,

Thilo


---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/cgiapp@lists.erlbaum.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to