Call isa, can, does and DOES safely on things that may not be objects

Edit Package perl-Safe-Isa
http://search.cpan.org/dist/Safe-Isa/

How many times have you found yourself writing:

if ($obj->isa('Something')) {

and then shortly afterwards cursing and changing it to:

if (Scalar::Util::blessed($obj) and $obj->isa('Something')) {

Right. That's why this module exists.

Source Files
Filename Size Changed
Safe-Isa-1.000005.tar.gz 0000005311 5.19 KB
perl-Safe-Isa.spec 0000002803 2.74 KB
Comments 0
No comments available
openSUSE Build Service is sponsored by