AUTOLOAD typo-catcher search for SNMP::Info no longer anchored

This commit is contained in:
Oliver Gorwits
2016-04-26 21:02:57 +01:00
parent a01c785ec8
commit 06806f5a6e
2 changed files with 2 additions and 1 deletions

View File

@@ -4681,7 +4681,7 @@ sub AUTOLOAD {
# Typos in function calls in SNMP::Info subclasses turn into
# AUTOLOAD requests for non-methods. While this is deprecated,
# we'll still get called, so report a less confusing error.
if ( ref($self) !~ /^SNMP::Info/ ) {
if ( ref($self) !~ /SNMP::Info/ ) {
# croak reports one level too high. die reports here.
# I would really like to get the place that's likely to