I would follow Jenda's advice in Re: !Overriding Builtin print and use tie to redirect all kinds of writes to a filehandle to a subroutine of my choosing.
In reply to Re: Override printing to STDOUT/ERR
by Corion
in thread Override printing to STDOUT/ERR
by bliako
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |