Re: Executing cgi from perl script

2002-07-12 Thread perl-dvd
t; To: <[EMAIL PROTECTED]> Sent: Thursday, July 11, 2002 4:40 PM Subject: Executing cgi from perl script Hi, I want to execute a cgi script from a perl script that first updates the cgi script. The basic code I'm using to open and update the file is: print "Content-type: tex

Executing cgi from perl script

2002-07-11 Thread McElwee, Shane
Hi, I want to execute a cgi script from a perl script that first updates the cgi script. The basic code I'm using to open and update the file is: print "Content-type: text/html\n\n"; open RESULT, "template.cgi"; while () { s/Insert content here/$output/g; print; } close RESULT; The cgi