Keep It Simple, Stupid | |
PerlMonks |
Tacking a function on to STDOUT?by Anonymous Monk |
on May 28, 2001 at 02:03 UTC ( [id://83647]=perlquestion: print w/replies, xml ) | Need Help?? |
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
|
|