Call isa, can, does and DOES safely on things that may not be objects
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.
- Download package
-
Checkout Package
osc -A https://api.opensuse.org checkout isv:perlur:epel/perl-Safe-Isa && cd $_ - Create Badge
Refresh
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