in reply to do script2.pl with parms

Thanks Corion,

I have used system() and `` before, but I think they start another process, is that right?

As a result, would 'do' be more efficient, performance wise?  It doesn't start another process, does it?

Replies are listed 'Best First'.
Re^2: do script2.pl with parms
by Corion (Patriarch) on Nov 12, 2010 at 09:51 UTC

    do does not start a new process. But not starting a second process has implications too. All global variables and modifications that script2 makes will be visible from within script1, which may lead to interesting and hard to debug problems.