in reply to Saving Standard Output (overloading print())
Pretty simple, huh? :) If you have further questions after trying it out, post them and I'll give you some further code that I use that works.package MyPrint; use FileHandle; sub TIEHANDLE { # I'll leave this as an exercise for you. } sub PRINT { my $self = shift; my $handle = $self->{FILEHANDLE}; print $handle @_; print @_; }
------
/me wants to be the brightest bulb in the chandelier!
Vote paco for President!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Saving Standard Output (overloading print())
by Anonymous Monk on Aug 10, 2001 at 01:38 UTC |