BSD Ports

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.

SystemPortVersionVulnerabilitiesStatusMaintainerLast update
DragonFlydevel/p5-Struct-Dumb0.14 behind since 2026-08-27none known-[email protected]-
FreeBSDdevel/p5-Struct-Dumb0.16 newestnone known-[email protected]-
OpenBSDdevel/p5-Struct-Dumb0.16 newestno data-Sven <[email protected]>2026-08-27
NetBSDdevel/p5-Struct-Dumb0.16nb1 newestnone known-[email protected]2026-07-16
MidnightBSDdevel/p5-Struct-Dumb0.16 newestno data-[email protected]-
HardenedBSDdevel/p5-Struct-Dumb0.16 newestno data-[email protected]-
GhostBSDdevel/p5-Struct-Dumb0.16 newestno data-[email protected]-

Compare across BSDs

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.

Dependencies

Run dependencies 1