From: Steve Hancock Date: Fri, 1 May 2020 13:28:02 +0000 (-0700) Subject: convert LineSink.pm to use object format print calls X-Git-Tag: 20200619~52 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=186a31d20f5110d6313715be3e64ed18ec89e8c0;p=perltidy.git convert LineSink.pm to use object format print calls --- diff --git a/lib/Perl/Tidy/LineSink.pm b/lib/Perl/Tidy/LineSink.pm index 96c245f6..5ae901c8 100644 --- a/lib/Perl/Tidy/LineSink.pm +++ b/lib/Perl/Tidy/LineSink.pm @@ -70,7 +70,7 @@ sub write_line { if ( $self->{_tee_flag} ) { unless ( $self->{_tee_file_opened} ) { $self->really_open_tee_file() } my $fh_tee = $self->{_fh_tee}; - print $fh_tee $line; + $fh_tee->print($line); } return; } @@ -78,15 +78,15 @@ sub write_line { sub write_tee_line { # write line to tee file only... - # the original tee-on/tee-off method is being replaced because it - # did not allow simultaneous tee-ing and deleting + # the original tee-on/tee-off method is being replaced because it + # did not allow simultaneous tee-ing and deleting my ( $self, $line ) = @_; chomp $line; $line .= $self->{_line_separator}; unless ( $self->{_tee_file_opened} ) { $self->really_open_tee_file() } my $fh_tee = $self->{_fh_tee}; - print $fh_tee $line; + $fh_tee->print($line); return; }