in reply to Re^4: Write json structure to a file
in thread Write json structure to a file

Your package OutputTee does seem to implement a tied filehandle but seems to not properly implement the BINMODE method.

You will have to fix OutputTee.pm to do the right thing. Likely, that is calling binmode on all its filehandles:

sub BINMODE { my( $self, @args ) = @_; binmode $self->{fh1}, @args; binmode $self->{fh2}, @args; }

Replies are listed 'Best First'.
Re^6: Write json structure to a file
by Anonymous Monk on Oct 24, 2017 at 04:46 UTC

    Thanks for your response! :)