You need to 'redirect' the underlying file descriptor, not point the filehandle STDOUT somewhere else.
Supersearch for responses from tye to STDOUT redirection questions.
In reply to Re^7: Overloading print()
by BrowserUk
in thread Overloading print()
by syphilis
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |