tie *STDERR,'MyRandomPackageName'; package MyRandomPackageName; sub TIEHANDLE { bless {}; } sub PRINT { CORE::print(@_); } sub PRINTF{ CORE::print(sprintf@_); } #etc
In reply to Re: How do I redirect STDERR to a subroutine?
by BUU
in thread How do I redirect STDERR to a subroutine?
by slloyd
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |