http://qs321.pair.com?node_id=313882

Sprad has asked for the wisdom of the Perl Monks concerning the following question:

I've written a simple Perl implementation of tee. I'd like to use it in a larger script to log STDERR to a file. Is it possible to put my tee code inside the main script as a function and pipe to it, or do I have to have it in a separate file?

---
A fair fight is a sign of poor planning.