in reply to catching STDERR of a system(@callout)

The \$var trick is purely a feature of the perl interpreter; the underlying OS knows nothing about it. When you fork and exec via system(), the new process can only inherit real file descriptors

Dave.

  • Comment on Re: catching STDERR of a system(@callout)

Replies are listed 'Best First'.
Re^2: catching STDERR of a system(@callout)
by agarsha (Acolyte) on Mar 25, 2006 at 15:23 UTC
    Thanks dave_the_m for not imbuing me with documentation about what I said I know about. Your explanation makes sense. I have moved to using a File::Temp file descriptor instead. Works.
Re^2: catching STDERR of a system(@callout)
by bart (Canon) on Mar 26, 2006 at 13:49 UTC
    Ditto with tie: child processes cannot inherit tied filehandles. (It would be marvelous, if they could.)