in reply to How do I redirect STDERR to a subroutine?
tie *STDERR,'MyRandomPackageName'; package MyRandomPackageName; sub TIEHANDLE { bless {}; } sub PRINT { CORE::print(@_); } sub PRINTF{ CORE::print(sprintf@_); } #etc
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: How do I redirect STDERR to a subroutine?
by blue_cowdawg (Monsignor) on Feb 18, 2004 at 02:26 UTC |