I am using ActiveState Perl v5.6.1 build 631 for a bunch of different projects. I
keep coming up with the same need in most of my programs. I would like to be able to
direct output to both the screen and a file without having to use pairs of print
statements.
The code:
print
I can think of a few approaches...
1. write a subroutine to do this.
2. write a source filter
(http://www.samag.com/documents/s=1287/sam03030004/)
3. use tie
I would probably choose the third. It is possible to create a module that
you simulate a filehandle (or hash, or array, etc). The short
--- Cutts III, James H. [EMAIL PROTECTED]
wrote:
I am using ActiveState Perl v5.6.1 build 631 for a
bunch of different projects. I keep coming up with
the same need in most of my programs. I would like
to be able to direct output to both the screen and a
file without having to use pairs