On Thursday 24 June 2004 08:32 pm, Charlene Gentle wrote:
> Hi
>
> How do you call 'n perl script from within a perl script and return to
> the scripts again.
>
> <From master script to link script back to master script>
>
> Thanx

You can use the 'system' command:

##--master--
...
my $rc = system "perl slave.pl";
...

or backtics if you want to capture output from
the slave

my $slave_output = `perl slave.pl`;

In each case, check the return codes (see the
documentation).

Aloha => Beau;


-- 
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