freebsd-ports/devel/p5-UNIVERSAL-isa/pkg-descr
Lars Thegler 5c8afcbe01 Add p5-UNIVERSAL-isa 0.05, hack around people calling UNIVERSAL::isa()
as a function.

PR:		ports/89135
Submitted by:	Lars Balker Rasmussen <lars@balker.dk>
2005-11-16 20:07:12 +00:00

12 lines
537 B
Text

Whenever you use UNIVERSAL::isa as a function, a kitten using
Test::MockObject dies. Normally, the kittens would be helpless, but if they
use UNIVERSAL::isa (the module whose docs you are reading), the kittens can
live long and prosper.
This module replaces UNIVERSAL::isa with a version that makes sure that if
it's called as a function on objects which override isa, isa will be
called on those objects as a method.
In all other cases the real UNIVERSAL::isa is just called directly.
WWW: http://search.cpan.org/dist/UNIVERSAL-isa/