in reply to Redirect to STDOUT and file
This line doesn't do what you think. I suspect you've got a file named something like IO::Tee=GLOB(0x123456) on your system, with the output you desire.
Something like *STDERR = $TeeErr comes closer to what you want, but isn't perfect.
The surest way to trap and tee all of a program's output is, it seems to me, external: simply run the code piped to a teeing process.
-Mike
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Redirect to STDOUT and file
by ikegami (Patriarch) on Jan 10, 2008 at 05:19 UTC | |
by pilcrow (Sexton) on Jan 10, 2008 at 21:54 UTC | |
by ikegami (Patriarch) on Jan 12, 2008 at 05:28 UTC |