in reply to Re: Capturing STDERR (this is not a FAQ)
in thread Capturing STDERR (this is not a FAQ)
open (STDERR, '>', './log.txt') or die "could not open STDERR: $!\n";It captures STDERR from child processes without any calls to system or backticks or whatever having to be called in a special way. The problem is that it only redirects to a file. Isn't there some way to redirect it to a subroutine or file handle instead?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Capturing STDERR (this is not a FAQ)
by BrowserUk (Patriarch) on Feb 10, 2015 at 07:16 UTC | |
|
Re^3: Capturing STDERR (this is not a FAQ)
by BillKSmith (Monsignor) on Feb 10, 2015 at 13:59 UTC | |
by ikegami (Patriarch) on Feb 10, 2015 at 14:58 UTC | |
|
Re^3: Capturing STDERR (this is not a FAQ)
by ikegami (Patriarch) on Feb 10, 2015 at 14:57 UTC | |
|