I am developing the framework for an application that makes use of the
CGI::Application module, but I don't quite use it the way the docs suggest.
In a nutshell I have one relatively small CGI script and several
CGI::Application based 'functionality modules'. The CGI script basically
acts as a traffic cop executing run modes in one or more of these
'functionality modules' based on a number of factors. The result is a very
modular and scalable framework which is controlled by a single, quite
simple, script. As long as the 'functionality modules' follow 4 simple rules
they can be seamlessly plugged into the application by adding a single line
to a config file.
But to get back to my question, is there any way to get the output of a run
mode without the headers attached. I am already using
'$ENV{CGI_APP_RETURN_ONLY} = 1' to grab the output without printing it to
the browser (so I can wrap an application wide template around it). I'd like
to be able to have run modes that instead of returning output, perform some
action and then call on a second run mode which returns the output. At the
moment what this does is return the output which two headers attached (the
first header, no output, the second header, the output). I can regex the
headers out and add my own, but is there a better (cleaner) way of going
about wrapping the output of two (or more) run modes with only one header.
Thanks.
Christopher S. Hyne
[EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]