{"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/midnightbsd/devel/p5-Safe-Isa/","kind":"port","lastUpdate":null,"license":["artistic","gpl"],"maintainer":"ports@MidnightBSD.org","name":"p5-Safe-Isa","newest":true,"newestVersion":"1.000010","noVulnData":true,"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":"sunpoet@FreeBSD.org","newest":true,"origin":"devel/p5-Safe-Isa","path":"/dragonfly/devel/p5-Safe-Isa/","system":"DragonFly","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":"mports","requiredBy":["devel/p5-MetaCPAN-Client","textproc/p5-PPI"],"requiredByCount":2,"runDepends":[],"status":null,"system":"midnightbsd","systemLabel":"MidnightBSD","version":"1.000010","versions":null,"vulnerabilities":null,"www":null}
