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

POSIX::_exit would be better than die. We don't want END blocks and other unwinding to occur in the child

Replies are listed 'Best First'.
Re^3: Doubled print with eval and open3
by almut (Canon) on Mar 06, 2007 at 01:31 UTC

    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)

      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.