in reply to Re: calling a perl script within a perl script
in thread calling a perl script within a perl script
Also, your || die is tricky. If your test_script.pl returns a zero then it will die.It's actually even trickier. Since the backticks will return the output of the script, if the script doesn't output anything, the main program will die. system is definitely better than backticks if you don't care about the output.
If you care about speed, consider using do 'filename.pl', which will avoid firing up a new Perl interpreter. You may have to set @ARGV manually to make this work.
|
|---|