{"added":null,"apiVersion":1,"behindSince":null,"buildDepends":[],"categories":["devel","perl5"],"comment":"Call isa, can, does and DOES safely on things that may not be objects","compare":"/compare/p5-safe-isa/index.json","dependentCount":null,"description":"Since Perl allows us to provide a subroutine reference or a method name to the\n-\u003e operator when used as a method call, and a subroutine doesn't require the\ninvocant to actually be an object, we can create safe versions of isa, can and\nfriends by using a subroutine reference that only tries to call the method if\nit's used on an object.\n\ne.g. my $isa_Foo = $maybe_an_object-\u003e$_call_if_object(isa =\u003e 'Foo');\n\nNote that we don't handle trying class names, because many things are valid\nclass names that you might not want to treat as one (like say \"Matt\") - the\nis_module_name function from Module::Runtime is a good way to check for\nsomething you might be able to call methods on if you want to do that.","flavors":[],"html":"https://daemonports.org/dragonfly/devel/p5-Safe-Isa/","kind":"port","lastUpdate":null,"license":["ART10","GPLv1+"],"maintainer":"sunpoet@FreeBSD.org","name":"p5-Safe-Isa","newest":true,"newestVersion":"1.000010","noVulnData":false,"origin":"devel/p5-Safe-Isa","otherSystems":[{"maintainer":"sunpoet@FreeBSD.org","newest":true,"origin":"devel/p5-Safe-Isa","path":"/devel/p5-Safe-Isa/","system":"FreeBSD","version":"1.000010"},{"maintainer":"The OpenBSD ports mailing-list \u003cports@openbsd.org\u003e","newest":true,"noVulnData":true,"origin":"devel/p5-Safe-Isa","path":"/openbsd/devel/p5-Safe-Isa/","system":"OpenBSD","version":"1.000010p0"},{"maintainer":"pkgsrc-users@NetBSD.org","newest":true,"origin":"devel/p5-Safe-Isa","path":"/netbsd/devel/p5-Safe-Isa/","system":"NetBSD","updated":"2026-07-16","version":"1.000010nb9"},{"maintainer":"ports@MidnightBSD.org","newest":true,"noVulnData":true,"origin":"devel/p5-Safe-Isa","path":"/midnightbsd/devel/p5-Safe-Isa/","system":"MidnightBSD","version":"1.000010"},{"maintainer":"sunpoet@FreeBSD.org","newest":true,"noVulnData":true,"origin":"devel/p5-Safe-Isa","path":"","system":"HardenedBSD","version":"1.000010"},{"maintainer":"sunpoet@FreeBSD.org","newest":true,"noVulnData":true,"origin":"devel/p5-Safe-Isa","path":"","system":"GhostBSD","version":"1.000010"}],"packages":null,"pkgName":"p5-Safe-Isa-1.000010","related":null,"repository":"DPorts","requiredBy":["databases/p5-DBIx-Class-Helpers","databases/p5-MongoDB","devel/p5-Data-Frame","devel/p5-Eval-Quosure","devel/p5-MetaCPAN-Client","devel/p5-MooseX-Role-Loggable","devel/p5-MooseX-Types-ISO8601","devel/p5-Test2-Tools-PDL","devel/p5-Type-TinyX-Facets","net/p5-Net-Amazon-S3","textproc/p5-HTML-Packer","www/p5-Catalyst-Runtime","www/p5-Dancer2","www/p5-Dancer2-Plugin-Interchange6","www/p5-HTTP-Thin","www/p5-Interchange6","www/p5-Mojo-UserAgent-Mockable","www/p5-Test-LWP-UserAgent"],"requiredByCount":18,"runDepends":["lang/perl5.36"],"status":null,"system":"dragonfly","systemLabel":"DragonFly","version":"1.000010","versions":null,"vulnerabilities":null,"www":"https://metacpan.org/release/Safe-Isa"}
