Welcome to the Monastery | |
PerlMonks |
Re: Tacking a function on to STDOUT?by RhetTbull (Curate) |
on May 28, 2001 at 03:26 UTC ( [id://83655]=note: print w/replies, xml ) | Need Help?? |
Try Filter::Handle. It does exactly what you're looking for. You can tie a sub to a file handle including STDOUT so that your text gets processed by the sub before being printed. That let's you use plain old "print", etc.
In Section
Seekers of Perl Wisdom
|
|