From 3057ba8826050d8ee6ffc084b17e5245f7e4458d Mon Sep 17 00:00:00 2001 From: Steve Hancock Date: Thu, 29 Oct 2020 07:50:19 -0700 Subject: [PATCH] update all AUTOLOAD subs to display VERSION --- lib/Perl/Tidy/Diagnostics.pm | 4 +++- lib/Perl/Tidy/FileWriter.pm | 4 +++- lib/Perl/Tidy/HtmlWriter.pm | 4 +++- lib/Perl/Tidy/IOScalar.pm | 4 +++- lib/Perl/Tidy/IOScalarArray.pm | 4 +++- lib/Perl/Tidy/IndentationItem.pm | 4 +++- lib/Perl/Tidy/LineBuffer.pm | 4 +++- lib/Perl/Tidy/LineSource.pm | 4 +++- lib/Perl/Tidy/Logger.pm | 4 +++- 9 files changed, 27 insertions(+), 9 deletions(-) diff --git a/lib/Perl/Tidy/Diagnostics.pm b/lib/Perl/Tidy/Diagnostics.pm index 6b9dd50c..7a39bcf8 100644 --- a/lib/Perl/Tidy/Diagnostics.pm +++ b/lib/Perl/Tidy/Diagnostics.pm @@ -30,9 +30,11 @@ sub AUTOLOAD { our $AUTOLOAD; return if ( $AUTOLOAD =~ /\bDESTROY$/ ); my ( $pkg, $fname, $lno ) = caller(); + my $my_package = __PACKAGE__; print STDERR <