devel/p5-Struct-Dumb 0.14 DragonFly
Make simple lightweight record-like structures
- System
- DragonFly
- Repository
- DPorts
- Maintainer
- [email protected] (as in FreeBSD)
- License
- ART10, GPLv1+
- Categories
- devel, perl5
- Package size
- 16.4 KiB, 54.5 KiB installed
Description
Struct::Dumb creates record-like structure types, similar to the struct keyword in C, C++ or C#, or Record in Pascal. An invocation of this module will create a construction function which returns new object references with the given field values. These references all respond to lvalue methods that access or modify the values stored.
It's specifically and intentionally not meant to be an object class. You cannot subclass it. You cannot provide additional methods. You cannot apply roles or mixins or metaclasses or traits or antlers or whatever else is in fashion this week.
On the other hand, it is tiny, creates cheap lightweight array-backed structures, uses nothing outside of core. It's intended simply to be a slightly nicer way to store data structures, where otherwise you might be tempted to abuse a hash, complete with the risk of typoing key names. The constructor will croak if passed the wrong number of arguments, as will attempts to refer to fields that don't exist.
In the other systems
The newest version among them is 0.16, as upstream numbers it.
| System | Port | Version | Vulnerabilities | Status | Maintainer | Last update |
|---|---|---|---|---|---|---|
| DragonFly | devel/p5-Struct-Dumb | 0.14 behind since 2026-08-27 | none known | - | [email protected] | - |
| FreeBSD | devel/p5-Struct-Dumb | 0.16 newest | none known | - | [email protected] | - |
| OpenBSD | devel/p5-Struct-Dumb | 0.16 newest | no data | - | Sven <[email protected]> | 2026-08-27 |
| NetBSD | devel/p5-Struct-Dumb | 0.16nb1 newest | none known | - | [email protected] | 2026-07-16 |
| MidnightBSD | devel/p5-Struct-Dumb | 0.16 newest | no data | - | [email protected] | - |
| HardenedBSD | devel/p5-Struct-Dumb | 0.16 newest | no data | - | [email protected] | - |
| GhostBSD | devel/p5-Struct-Dumb | 0.16 newest | no data | - | [email protected] | - |
Install
Binary package:
pkg install p5-Struct-Dumb
From DPorts:
cd /usr/dports/devel/p5-Struct-Dumb && 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.