Perl: Calling a perl script from another

Viewed 13787

I have a perl script which calls another script. I am calling it using backticks and passing argument to that script and it works fine.

`CQPerl call_script.pl $agr1 $agr2 $arg3`;

But please suggest if there is another better way to do so. How can I check if the script errored out because of the calling script or the script that was called. How do I do that check from the calling script itself?

2 Answers
Related