in reply to Re: Difficulty handling std{in,out,err} of child processes
in thread Difficulty handling std{in,out,err} of child processes

re autovivification, I tried first without the //= lines, but push kept spitting out an error about the first argument needing to be an array or array reference and not a hash element.

Also, the $! _is_ giving the 'invalid seek' message, and I just tried with $@ and it merely said:
Error starting ID 5:
ie, without any error message at all. (If I change the if as well, the line is missing completely.)

Replies are listed 'Best First'.
Re^3: Difficulty handling std{in,out,err} of child processes
by jwkrahn (Abbot) on Dec 01, 2010 at 07:27 UTC

    If  start_job() is setting $! when it fails then you need to die at that point with $! in the error message and that will show up in $@ at the end of eval.

      Ah, okay. Thanks!
Re^3: Difficulty handling std{in,out,err} of child processes
by eternaleye (Novice) on Dec 01, 2010 at 07:19 UTC
    Hm, with your suggestion on the %used section it's working. Not sure why I was getting the error I was.