p5-Struct-Dumb-0.09.txz


Advertisement

Description

p5-Struct-Dumb - Make simple lightweight record-like structures

Property Value
Distribution FreeBSD 10
Repository FreeBSD Ports Quarterly i386
Package filename p5-Struct-Dumb-0.09.txz
Package name p5-Struct-Dumb
Package version 0.09
Package release -
Package architecture i386
Package type txz
Category devel perl5
Homepage https://metacpan.org/release/Struct-Dumb
License GPLv1+, ART10
Maintainer sunpoet@FreeBSD.org
Download size 14.70 KB
Installed size 49.83 KB
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.
WWW: https://metacpan.org/release/Struct-Dumb

Alternatives

Package Version Architecture Repository
p5-Struct-Dumb-0.09.txz 0.09 i386 FreeBSD Ports Latest
p5-Struct-Dumb-0.09.txz 0.09 amd64 FreeBSD Ports Latest
p5-Struct-Dumb-0.09.txz 0.09 amd64 FreeBSD Ports Quarterly
p5-Struct-Dumb - - -

Requires

Name Value
perl5 = 5.26.2

Download

Type URL
Mirror pkg.freebsd.org
Binary Package p5-Struct-Dumb-0.09.txz
Source Package devel/p5-Struct-Dumb

Install Howto

Install p5-Struct-Dumb txz package:

# pkg install p5-Struct-Dumb

See Also

Package Description
p5-Sub-Current-0.03.txz Get the current subroutine
p5-Sub-Delete-1.00002_1.txz Perl module enabling one to delete subroutines
p5-Sub-Exporter-0.987_1.txz Sophisticated exporter for custom-built routines
p5-Sub-Exporter-ForMethods-0.100052.txz Helper routines for using Sub::Exporter to build methods
p5-Sub-Exporter-GlobExporter-0.005.txz Export shared globs with Sub::Exporter collectors
p5-Sub-Exporter-Lexical-0.092292_1.txz Export lexically-available subs with Sub::Exporter
p5-Sub-Exporter-Progressive-0.001013.txz Only use Sub::Exporter if you need it
p5-Sub-Identify-0.14.txz Retrieve names of code references
p5-Sub-Infix-0.004_1.txz Create a fake infix operator
p5-Sub-Info-0.002.txz Tool to inspect subroutines
p5-Sub-Install-0.928_1.txz Install subroutines into packages easily
p5-Sub-Installer-0.0.3_2.txz Clean way to (re)install package subroutines
p5-Sub-Multi-0.003_1.txz Data::Bind-based multi-sub dispatch
p5-Sub-Name-0.21,1.txz Sub::Name - (re)name a sub
p5-Sub-Override-0.09_1.txz Perl extension for easily overriding subroutines
Advertisement
Advertisement