in reply to executing system command from within perl script
Use the system-command for this, e.g. my $result = system("perl insideScript.pl");.
Alternatively, you could use backticks (`` or qx//) (e.g. my @result = `perl insideScript.pl`;).
As you see, the difference is on how to handle the output and result of your inner script.
HTH, Rata
|
|---|