in reply to Re^2: Doubled print with eval and open3
in thread Doubled print with eval and open3

That's right, but it still leaves us with the problem of how to properly return the full error message, as the $@ is only available/set in the child...   Or am I not getting something? (POSIX::_exit($!) doesn't seem to do it for me...)

(BTW, I'm talking about unix-ish systems - or more specifically Linux)

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

    it still leaves us with the problem of how to properly return the full error message

    Indeed, but I don't figure this to be a big problem given the presence of three communication paths back to the parent: STDOUT, STDERR and the exit code.

      Good stuff!

      I like computer programming because it's like Legos for the mind.