• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 454
  • Last Modified:

start a perl script from a perl script

From the browser the user sends data to a perl script.
How can I start another local perl script from this perl script ?
0
alki
Asked:
alki
1 Solution
 
guadalupeCommented:
use either system like this:

$status = system("perl path/script.pl");

this will return the exit code of the script (usually 0 for success or 256 for failure).

If you would like to capture the output of the script use backtics:

$output = `perl path/script.pl`;

0
 
ozoCommented:
#or
do 'path/script.pl';
0

Featured Post

Take Control of Web Hosting For Your Clients

As a web developer or IT admin, successfully managing multiple client accounts can be challenging. In this webinar we will look at the tools provided by Media Temple and Plesk to make managing your clients’ hosting easier.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now