devel/p5-Safe-Isa 1.000010 DragonFly
Call isa, can, does and DOES safely on things that may not be objects
- System
- DragonFly
- Repository
- DPorts
- Maintainer
- [email protected] (as in FreeBSD)
- License
- ART10, GPLv1+
- Categories
- devel, perl5
- Package size
- 8.2 KiB, 14.9 KiB installed
Description
Since Perl allows us to provide a subroutine reference or a method name to the -> operator when used as a method call, and a subroutine doesn't require the invocant to actually be an object, we can create safe versions of isa, can and friends by using a subroutine reference that only tries to call the method if it's used on an object.
e.g. my $isa_Foo = $maybe_an_object->$_call_if_object(isa => 'Foo');
Note that we don't handle trying class names, because many things are valid class names that you might not want to treat as one (like say "Matt") - the is_module_name function from Module::Runtime is a good way to check for something you might be able to call methods on if you want to do that.
In the other systems
The newest version among them is 1.000010, as upstream numbers it.
| System | Port | Version | Vulnerabilities | Status | Maintainer | Last update |
|---|---|---|---|---|---|---|
| DragonFly | devel/p5-Safe-Isa | 1.000010 newest | none known | - | [email protected] | - |
| FreeBSD | devel/p5-Safe-Isa | 1.000010 newest | none known | - | [email protected] | - |
| OpenBSD | devel/p5-Safe-Isa | 1.000010p0 newest | no data | - | The OpenBSD ports mailing-list <[email protected]> | - |
| NetBSD | devel/p5-Safe-Isa | 1.000010nb9 newest | none known | - | [email protected] | 2026-07-16 |
| MidnightBSD | devel/p5-Safe-Isa | 1.000010 newest | no data | - | [email protected] | - |
| HardenedBSD | devel/p5-Safe-Isa | 1.000010 newest | no data | - | [email protected] | - |
| GhostBSD | devel/p5-Safe-Isa | 1.000010 newest | no data | - | [email protected] | - |
Install
Binary package:
pkg install p5-Safe-Isa
From DPorts:
cd /usr/dports/devel/p5-Safe-Isa && make install clean
Dependencies
Run dependencies 1
Required by 18
- 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