in reply to capturing stderr of echo piped to a file
Here is how I've done it in test files:
I can't remember where I first saw that, but I've kept it handy ever since.# Capture any STDERR output my $stderr = ''; local *STDERR; open STDERR, '>', \$stderr;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: capturing stderr of echo piped to a file
by Anonymous Monk on Oct 29, 2014 at 23:52 UTC | |
by boftx (Deacon) on Oct 29, 2014 at 23:55 UTC |