From: Steve Hancock Date: Sat, 3 Oct 2020 23:05:41 +0000 (-0700) Subject: fix AUTOLOAD handling of any DESTROY call X-Git-Tag: 20201001.01~25 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=21ccf02c01a187fefd140cb103965565d50bcb38;p=perltidy.git fix AUTOLOAD handling of any DESTROY call --- diff --git a/lib/Perl/Tidy/Diagnostics.pm b/lib/Perl/Tidy/Diagnostics.pm index 1d97be6f..718daf65 100644 --- a/lib/Perl/Tidy/Diagnostics.pm +++ b/lib/Perl/Tidy/Diagnostics.pm @@ -28,7 +28,7 @@ sub AUTOLOAD { # some diagnostic information. This sub should never be called # except for a programming error. our $AUTOLOAD; - return if ( $AUTOLOAD eq 'DESTROY' ); + return if ( $AUTOLOAD =~/\bDESTROY$/ ); my ( $pkg, $fname, $lno ) = caller(); print STDERR <