more tolerant of weird subname calls in autoload
This commit is contained in:
@@ -5132,7 +5132,7 @@ subclass.
|
|||||||
|
|
||||||
sub AUTOLOAD {
|
sub AUTOLOAD {
|
||||||
my $self = shift;
|
my $self = shift;
|
||||||
my ($sub_name) = $AUTOLOAD =~ /::(\w+)$/;
|
my ($sub_name) = $AUTOLOAD =~ /::([a-zA-Z0-9_-]+)$/;
|
||||||
|
|
||||||
return if $sub_name eq 'CARP_TRACE';
|
return if $sub_name eq 'CARP_TRACE';
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user