lib/Perl/Tidy.pm
lib/Perl/Tidy.pod
lib/Perl/Tidy/Debugger.pm
-lib/Perl/Tidy/DevNull.pm
lib/Perl/Tidy/Diagnostics.pm
lib/Perl/Tidy/FileWriter.pm
lib/Perl/Tidy/Formatter.pm
t/testwide-tidy.t
t/testwide.pl.src
t/testwide.t
+t/zero.t
use English qw( -no_match_vars );
use Digest::MD5 qw(md5_hex);
use Perl::Tidy::Debugger;
-use Perl::Tidy::DevNull;
use Perl::Tidy::Diagnostics;
use Perl::Tidy::FileWriter;
use Perl::Tidy::Formatter;
# if the user defines a formatter, there is no output stream,
# but we need a null stream to keep coding simple
- $destination_stream = Perl::Tidy::DevNull->new();
+ $destination_stream = \my $tmp;
}
# see if ARGV is overridden
# If the source is from an array or string, then .LOG output
# is only possible if a logfile stream is specified. This prevents
- # unexpected perltidy.LOG files.
+ # unexpected perltidy.LOG files. If the stream is not defined
+ # then we will capture it in a string ref but it will not be
+ # accessible. Previously by Perl::Tidy::DevNull (fix c255);
if ( !defined($logfile_stream) ) {
- $logfile_stream = Perl::Tidy::DevNull->new();
+ $logfile_stream = \my $tmp;
# Likewise for .TEE and .DEBUG output
}
if ( !defined($teefile_stream) ) {
- $teefile_stream = Perl::Tidy::DevNull->new();
+ $teefile_stream = \my $tmp;
}
if ( !defined($debugfile_stream) ) {
- $debugfile_stream = Perl::Tidy::DevNull->new();
+ $debugfile_stream = \my $tmp;
}
}
elsif ( $input_file eq '-' ) { # '-' indicates input from STDIN
+++ /dev/null
-#####################################################################
-#
-# The Perl::Tidy::DevNull class supplies a dummy print method
-#
-#####################################################################
-
-package Perl::Tidy::DevNull;
-use strict;
-use warnings;
-our $VERSION = '20230701.02';
-sub new { my $self = shift; return bless {}, $self }
-sub print { return }
-sub close { return }
-
-1;
-
my @modules = qw(
lib/Perl/Tidy.pm
lib/Perl/Tidy/Debugger.pm
- lib/Perl/Tidy/DevNull.pm
lib/Perl/Tidy/Diagnostics.pm
lib/Perl/Tidy/FileWriter.pm
lib/Perl/Tidy/Formatter.pm