|
|
| "be consistent" | |
| PerlMonks |
Tacking a function on to STDOUT?by Anonymous Monk |
| on May 27, 2001 at 22:03 UTC ( [id://83647]=perlquestion: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I need to rig it so that, everytime I print something to STDOUT, it triggers a subroutine first, and passes the text to be printed to the sub as an argument. for instance:
what i want here, is that the script automatically takes any text sent to STDOUT in print() calls, and runs it through filterText(), almost like doing this, but automatically.
Back to
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||||||||||