I want to autotie CGI::SSI in some way to the output of my CGI::Application module.
For a normal CGI I would do the following and it would interpret any SSI tags in whatever the script outputs before it goes to the browser:
use CGI::SSI (autotie => STDOUT);
When I try this in a CGI::Application module it reports errors about file handles such as:
Failed to copy the filehandle (ATRACK::STDOUT): Invalid argument at /u
+sr/share/perl5/CGI/SSI.pm line 74.
I'll be the first to admit I don't know how CGI::Application handles STDOUT, or what filehandle it uses to do it's magic, do I need to autotie it to some other special file handle? I've had a look through the source for any clues, but it is beyond me. Can anyone suggest how I could achieve this or if I'm wasting my time trying?
Thanks,
Ryan