in reply to Re: system() not quite as described?
in thread system() not quite as described?

Sorry joost I should have said, yes I am on Win32.

jdtoronto

Replies are listed 'Best First'.
Re^3: system() not quite as described?
by Joost (Canon) on Jun 22, 2006 at 18:14 UTC
      It's used by core module IPC::Open3 (and Open2) instead of fork+exec when used on Windows.
Re^3: system() not quite as described?
by mikasue (Friar) on Jun 23, 2006 at 16:13 UTC
    What the advantage of doing this instead of using fork?

      Why bother cloning an entire process if the next thing you are going to do is overwrite it by loading another program?

      The system 1, 'other.exe' only works on Win32. Win32 does not have the concept of forking in the OS, and Perl's fork is an emulation of that concept implemented using a thread. Unfortunately, the emulation does not quite live upto the functionality of *nix fork.


      Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
      Lingua non convalesco, consenesco et abolesco. -- Rule 1 has a caveat! -- Who broke the cabal?
      "Science is about questioning the status quo. Questioning authority".
      In the absence of evidence, opinion is indistinguishable from prejudice.