Hi all -

I just started using cgiapp and have a question I have not seen in the
archives, although it may be there and I just couldn't find it.  I would
like to have some run modes that 'perform actions' and other run modes that
'create output'.  The problem is, even when my run mode method returns an
empty $output, run() still prints the header(s).  I have tried temporarily
redirecting STDOUT and this works but seems a little clunky.

Since CGI leaves the printing to the implementation, I am wondering why
cgiapp insists on doing it?  Is there a simple way to control this that I
have missed?  If not, would anyone else be interested in the ability to
control whether or not output is generated?  One solution might be for run()
return immeadiately after executing the run mode if $body is empty.

Any ideas or help would be greatly appreciated.  Thanks!

Elizabeth


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to