Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
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.print STDOUT "Here's some text!"; sub filterText { # this might filter out certain words, encode text, etc. }
print filterText("Here's some text!");
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Tacking a function on to STDOUT?
by RhetTbull (Curate) on May 28, 2001 at 03:26 UTC | |
Re: Tacking a function on to STDOUT?
by jorg (Friar) on May 28, 2001 at 03:18 UTC | |
Re: Tacking a function on to STDOUT?
by larryk (Friar) on May 28, 2001 at 15:11 UTC | |
by RhetTbull (Curate) on May 28, 2001 at 18:39 UTC | |
Re: Tacking a function on to STDOUT?
by tachyon (Chancellor) on May 28, 2001 at 03:35 UTC | |
Re: Tacking a function on to STDOUT?
by ariels (Curate) on May 29, 2001 at 11:17 UTC | |
Re: Tacking a function on to STDOUT?
by Anonymous Monk on May 29, 2001 at 17:46 UTC |