in reply to RE: Re: monitor STDOUT in scalar
in thread monitor STDOUT in scalar
And even if you do work out those issues, I think you'll have a problem with "Deep Recursion". You're writing to a tied filehandle, which invokes the PRINT method on your tied object, which... writes to the same tied filehandle. Hence recursion.
Check out my new Snippet, Filehandle Filter. With that you could do this:
use Filter::Handle; local *DEBUG open DEBUG, ">debuglog" or die $!; my $f = Filter::Handle->new(\*DEBUG); print DEBUG "Foo"; print DEBUG "Bar";
|
---|
Replies are listed 'Best First'. | |
---|---|
RE: RE: RE: Re: monitor STDOUT in scalar
by Adam (Vicar) on Aug 11, 2000 at 04:58 UTC |