Capturing output of Perl file in code

by Stephen Johnston <pepe(at)gainsay.com>

 Date:  Mon, 24 Jan 2000 16:50:12 -0500
 To:  hwg-techniques(at)hwg.org
 References:  mitre
  todo: View Thread, Original
Hello All-

	I was just about to send an email about something like this, so I figured 
I would answer with a question.  I have a perl file which when browsed to, 
creates an html page that is sent to the browser. This code was not written 
by me. A client would like to have that output incorporated into my perl 
scripts, which generate their web pages.  I was hoping that instead of 
actually incorporating other code into mine. I could use some Perl call to 
inact that script, under certain conditions, and then place the OUTPUT of 
that script into a variable in MY script and spit it out when MY script is 
browsed to. So the user never sees the other script. I guess I would 
essentially like to turn a stand alone Perl file into a function. Can this 
be done? My hope is to MINIMIZE the code re-writing I have to do in the 
script I did not write.

Thanks Lots
-Stephen Johnston

HWG hwg-techniques mailing list archives, maintained by Webmasters @ IWA