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, RataIn reply to Re: executing system command from within perl script
by Ratazong
in thread executing system command from within perl script
by manishrathi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |