in reply to SSI in CGI scripts?

Sure. Why not? A CGI script is only a program that interacts with a web server- otherwise, it is completely normal and functional. If you are generating .shtml files through a CGi script (a quizzical but acceptable thing to do), then writing a file is the same as if you had made a command line program to do the same:
use CGI; ... open(FILE,"<webpage.shtml"); ... print FILE '<!--#exec cgi="somefunky.cgi"-->';
if it was created correctly, you'll be able to view your .shtml through your browser normally (watch permissions, locking, etc.).
AgentM Systems nor Nasca Enterprises nor Bone::Easy nor Macperl is responsible for the comments made by AgentM. Remember, you can build any logical system with NOR.

Replies are listed 'Best First'.
RE: Re: SSI in CGI scripts?
by NeverMore (Acolyte) on Nov 12, 2000 at 07:21 UTC
    actually, i did this: s/(\[include\])(\/\S+?)(\[\/include\])/ <!--\#include virtual="$2" --> /isg;<code> but this prints this: <code>< !--\#include virtual="$2" -->. What's the problem?
RE: Re: SSI in CGI scripts?
by NeverMore (Acolyte) on Nov 12, 2000 at 07:21 UTC
    actually, i did this: s/(\[include\])(\/\S+?)(\[\/include\])/ <!--\#include virtual="$2" --> /isg; but this prints this: < !--\#include virtual="$2" -->. What's the problem?