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.
-MikeIn reply to Re: Redirect to STDOUT and file
by pilcrow
in thread Redirect to STDOUT and file
by stevendel
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |