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; }
In reply to Re^5: Write json structure to a file
by Corion
in thread Write json structure to a file
by CropCircle
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |