# 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 <<EOM;
======================================================================
This error is probably due to a recent programming change
======================================================================
EOM
- Die(
- "Error exit due to unexpected Autoload call to '$AUTOLOAD'\n");
+ exit 1;
}
sub streamhandle {
# 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 <<EOM;
======================================================================
This error is probably due to a recent programming change
======================================================================
EOM
- Die("Error exit due to unexpected Autoload call to '$AUTOLOAD'\n");
+ exit 1;
}
sub DESTROY {
# 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 <<EOM;
======================================================================
This error is probably due to a recent programming change
======================================================================
EOM
- Perl::Tidy::Die(
- "Error exit due to unexpected Autoload call to '$AUTOLOAD'\n");
+ exit 1;
}
sub DESTROY {
# 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 <<EOM;
======================================================================
# 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 <<EOM;
======================================================================
This error is probably due to a recent programming change
======================================================================
EOM
- Perl::Tidy::Die(
- "Error exit due to unexpected Autoload call to '$AUTOLOAD'\n");
+ exit 1;
}
sub DESTROY {
$num=10 if ($num>10);
print STDERR <<EOM;
Some check files with errors (search above for '**ERROR'):
-(@chkfile_errors[1..$num])
+(@chkfile_errors[1..$num-1])
EOM
}