in reply to calling a perl script from within another perl script

I use open and IPC::open3 a lot.
open(MYSCRIPT, "foo arg1 $otherArgs |") or die "$!";
@output = <MYSCRIPT>;
close(MYSCRIPT);

Use open3 if you need STDERR and STDOUT both.
  • Comment on Re: calling a perl script from within another perl script