From: Steve Hancock Date: Tue, 8 Sep 2020 17:40:11 +0000 (-0700) Subject: simplify AUTOLOAD as much as possible X-Git-Tag: 20200907.01~35 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=5d3730ffed884faf7a9cebdaa4fffa6b9c2a4820;p=perltidy.git simplify AUTOLOAD as much as possible --- diff --git a/lib/Perl/Tidy.pm b/lib/Perl/Tidy.pm index 90d13ae3..36dbcfd2 100644 --- a/lib/Perl/Tidy.pm +++ b/lib/Perl/Tidy.pm @@ -123,6 +123,7 @@ sub AUTOLOAD { # some diagnostic information. This sub should never be called # except for a programming error. our $AUTOLOAD; + return if ($AUTOLOAD eq 'DESTROY'); my ( $pkg, $fname, $lno ) = caller(); print STDERR <10); print STDERR <