X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lib%2FPerl%2FTidy%2FDiagnostics.pm;h=c74ab9acd5b7d5fc0eaa301e7ceae8d6b4a228a4;hb=57d829ae0e2c75828f8ecc9c7139579350927dbc;hp=1893f1c9262d18cf1dd2bed205bc30ec7604ce0c;hpb=7f27e55dce5925b2bbe8fcfca64f385e917a52be;p=perltidy.git diff --git a/lib/Perl/Tidy/Diagnostics.pm b/lib/Perl/Tidy/Diagnostics.pm index 1893f1c..c74ab9a 100644 --- a/lib/Perl/Tidy/Diagnostics.pm +++ b/lib/Perl/Tidy/Diagnostics.pm @@ -20,7 +20,33 @@ package Perl::Tidy::Diagnostics; use strict; use warnings; -our $VERSION = '20200110'; +our $VERSION = '20210717'; + +sub AUTOLOAD { + + # Catch any undefined sub calls so that we are sure to get + # some diagnostic information. This sub should never be called + # except for a programming error. + our $AUTOLOAD; + return if ( $AUTOLOAD =~ /\bDESTROY$/ ); + my ( $pkg, $fname, $lno ) = caller(); + my $my_package = __PACKAGE__; + print STDERR <