in reply to executing a perl scripts within another perl script

Check out IPC::Open2 or IPC::Open3. Both of these are standard parts of the perl distribution. You can send info to the test2's stdin, and receive info back from test2's stdout.

  • Comment on Re: executing a perl scripts within another perl script