in reply to SSI within a Perl CGI script

I once created a toy module for this, which can parse and handle SSI's and #IF-#ELSE's for Apache.

It can be found here.

It is called, OO based and un-documented. (The source is still the documentation)
I hope it can help you.

er formait hyarya.
"Field experience is something you don't get until just after you need it."

Replies are listed 'Best First'.
Re: Re: SSI within a Perl CGI script
by perrin (Chancellor) on Mar 11, 2002 at 17:24 UTC
    No offense, but with modules for SSI already available on CPAN I can't see a good reason to use something that's not documented.

    Try CGI::SSI or CGI::SSI_Parser, or look at this node for more ideas.

      Thanks everyone for your quick replies!

      Regarding the CGI::SSI module, how do I actually use that? Again, excuse my ignorance, but I am new to using Perl and I'm not 100% clear on how to reference the code.

      Do I save all of the CGI::SSI code to a new file and then reference that module from my script, or paste this new code into my script?

      If anyone has a simple example that they could share with me I would be grateful.



        There's lots of information on this at (check the FAQ), and in man perlmod. There's a node on finding things in the perl documentation here.