in reply to Re: Tie *STDOUT, recursion error
in thread Tie *STDOUT, recursion error
I guess this opens a different underlying file handle, while my $oldhandle = STDOUT is an assignment/alias to the same file handle used by STDOUT.open(my $stdout, ">&", STDOUT); ... # in the overloaded method PRINT $stdout->print( @_ ); # this refers to the original STDOUT.
|
|---|