in reply to Starting up an external program with Win32::Process::Create fails for some, no others?

The first thing I would try is using the Windows-only asynchronous form of system:

system 1, $this->{mLink}->{'Path'};

If that works, I'd stop there(*).

If not, then $^E may shed some light on the reason.

(*)Given that system calls the same underlying API, CreateProcess(), with the additional benefit of having been got right over many versions of Perl, I see no benefit in calling that API directly unless I need access to features not exposed through system.


With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

The start of some sanity?

  • Comment on Re: Starting up an external program with Win32::Process::Create fails for some, no others?
  • Select or Download Code

Replies are listed 'Best First'.
Re^2: Starting up an external program with Win32::Process::Create fails for some, no others?
by 1bru1 (Initiate) on Dec 23, 2011 at 04:04 UTC

    Yes, that works! Thanks. I had been using system() before I discovered Create(), but I didn't know there was an async way to use it.

    I'm not sure why I can't get Create() to work. I've tried all kinds of permutations, including what BrowserUk suggested, but nothing happens.

    Any way, the system call is much simpler.

      Yes, that works! ... I've tried all kinds of permutations, including what BrowserUk suggested ...

      Erm. I am he. So ... ? :)


      With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
      Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
      "Science is about questioning the status quo. Questioning authority".
      In the absence of evidence, opinion is indistinguishable from prejudice.

      The start of some sanity?