BSD Ports

devel/p5-Data-OptList 0.114 MidnightBSD

Parse and validate simple name/value option pairs

System
MidnightBSD
Repository
mports
Maintainer
[email protected]
License
artistic, gpl
Categories
devel, perl5

Description

Hashes are great for storing named data, but if you want more than one entry for a name, you have to use a list of pairs. Even then, this is really boring to write:

@values = ( foo => undef, bar => undef, baz => undef, xyz => { ... }, );

With Data::OptList, you can do this instead:

Data::OptList::mkopt([ qw(foo bar baz), xyz => { ... }, ]);

This works by assuming that any defined scalar is a name and any reference following a name is its value.

In the other systems

The newest version among them is 0.115, as upstream numbers it.

SystemPortVersionVulnerabilitiesStatusMaintainerLast update
MidnightBSDdevel/p5-Data-OptList0.114 behind since 2026-09-12no data-[email protected]-
FreeBSDdevel/p5-Data-OptList0.114 behind since 2026-09-12none known-[email protected]-
OpenBSDdevel/p5-Data-OptList0.115 newestno data-The OpenBSD ports mailing-list <[email protected]>2026-09-15
NetBSDdevel/p5-Data-OptList0.115 newestnone known-[email protected]2026-09-12
DragonFlydevel/p5-Data-OptList0.114 behind since 2026-09-12none known-[email protected]-
HardenedBSDdevel/p5-Data-OptList0.114 behind since 2026-09-12no data-[email protected]-
GhostBSDdevel/p5-Data-OptList0.114 behind since 2026-09-12no data-[email protected]-
OPNsensedevel/p5-Data-OptList0.114 behind since 2026-09-12no data-[email protected]-

Compare across BSDs

Install

Binary package:

mport install p5-Data-OptList

From mports:

cd /usr/mports/devel/p5-Data-OptList && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	p5-Data-OptList>0:devel/p5-Data-OptList

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

As this port's Makefile names them.

Build 2

Runtime 2

Build dependencies 2
Run dependencies 2

Configuration

No options to configure.

USES
perl5
Service scripts
none

Files

pkg-plist 2
  • %%SITE_PERL%%/Data/OptList.pm
  • %%PERL5_MAN3%%/Data::OptList.3.gz
distinfo 1
FileSizeSHA256
Data-OptList-0.114.tar.gz198919fd1093b917a21fb79ae1607db53d113b4e0ad8fe0ae776cb077a7e50044fdf3
Master sites 1
  • CPAN