Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: SSI within a Perl CGI script

by Sinister (Friar)
on Mar 11, 2002 at 16:55 UTC ( #150915=note: print w/ replies, xml ) Need Help??


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 ApacheParse.pm, 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."


Comment on Re: SSI within a Perl CGI script
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.

      Thanks,

      j

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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://150915]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (14)
As of 2015-07-01 21:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (22 votes), past polls