in reply to Doubled print with eval and open3

Thanks for the help. This really gives me a lot of traction on the problem. I'm only running POSIX::_exit($!); if !$pid because it appears that open3 already sends some output to STDERR. I don't see how to stop that and send my own custom error message, short of writing my own open3. But this is fine.

I also still have a check for $@, since I suspect that it would be set if the fork() failed.

Replies are listed 'Best First'.
Re^2: Doubled print with eval and open3
by ikegami (Patriarch) on Mar 06, 2007 at 18:24 UTC

    I also still have a check for $@, since I suspect that it would be set if the fork() failed.

    Yes, but *after* if !$pid, because you only want to do that in the parent.