mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-27 00:57:50 +00:00
5f56b42ed9
base class to treat unhandled method calls as errors. PR: 32967 Submitted by: Sergey Skvortsov <skv@FreeBSD.org>
14 lines
491 B
Plaintext
14 lines
491 B
Plaintext
Its possible to accidentally inherit an AUTOLOAD method. Often this
|
|
will happen if a class somewhere in the chain uses AutoLoader or defines
|
|
one of their own. This can lead to confusing error messages when method
|
|
lookups fail.
|
|
|
|
Sometimes you want to avoid this accidental inheritance. In that case,
|
|
inherit from Class::WhiteHole. All unhandled methods will produce
|
|
normal Perl error messages.
|
|
|
|
WWW: http://search.cpan.org/search?dist=Class-WhiteHole
|
|
|
|
-- Sergey Skvortsov
|
|
skv@FreeBSD.org
|