Isn't there some way to redirect it to a subroutine
The child process cannot access variables or call subroutines in your process. You will need to have the child write to a pipe from which you will read, then you can pass what you read to a subroutine.
or file handle instead?
huh? "Redirecting data sent to a file handle to a file handle" makes no sense.
In reply to Re^3: Capturing STDERR (this is not a FAQ)
by ikegami
in thread Capturing STDERR (this is not a FAQ)
by mikosullivan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |