devel/p5-PerlX-Maybe 1.202 DragonFly
Return a pair only if they are both defined
- System
- DragonFly
- Repository
- DPorts
- Maintainer
- [email protected] (as in FreeBSD)
- License
- ART10, GPLv1+
- Categories
- devel, perl5
- Package size
- 15.3 KiB, 51.3 KiB installed
Description
Moose classes (and some other classes) distinguish between an attribute being unset and the attribute being set to undef.
To ensure that the Person constructor does not try to set a name or age at all when they are undefined, ugly looking code is often used. A slightly more elegant solution is the maybe function.
In the other systems
The newest version among them is 1.202, as upstream numbers it.
| System | Port | Version | Vulnerabilities | Status | Maintainer | Last update |
|---|---|---|---|---|---|---|
| DragonFly | devel/p5-PerlX-Maybe | 1.202 newest | none known | - | [email protected] | - |
| FreeBSD | devel/p5-PerlX-Maybe | 1.202 newest | none known | - | [email protected] | - |
| OpenBSD | devel/p5-PerlX-Maybe | 1.202 newest | no data | - | The OpenBSD ports mailing-list <[email protected]> | - |
| NetBSD | devel/p5-PerlX-Maybe | 1.202nb3 newest | none known | - | [email protected] | 2026-07-16 |
| HardenedBSD | devel/p5-PerlX-Maybe | 1.202 newest | no data | - | [email protected] | - |
| GhostBSD | devel/p5-PerlX-Maybe | 1.202 newest | no data | - | [email protected] | - |
Install
Binary package:
pkg install p5-PerlX-Maybe
From DPorts:
cd /usr/dports/devel/p5-PerlX-Maybe && make install clean
Dependency graph
Ports that need it on the left, what it needs to run on the right; at most 8 of each. "Dependencies" below lists them all.