You can execute that second script:
require script.pl

or

system('perl script.pl');

----- Original Message ----- 
From: "Kenneth W. Craft MCP" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, January 14, 2004 3:06 PM
Subject: Script within a script


> Is it possible to execute a perl script within another perl script?
> 
> I have advertisements on many of my pages of my site that are randomly
> picked using a random ad script. I am creating some pages that are
> dynamically being created, and I can't use ssi to pull the ads into the
> page (right now on my main page I use <!--#exec cgi --> to call the ad
> scripts.
> 
> Thanks
> 
> 
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.558 / Virus Database: 350 - Release Date: 1/2/2004
>  
> 
> 
> -- 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> <http://learn.perl.org/> <http://learn.perl.org/first-response>
> 
> 
> 

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to