BSD Ports

devel/p5-Data-OptList 0.114 FreeBSD

Parse and validate simple name/value option pairs

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
License
ART10, GPLv1+
Categories
devel, perl5
Package size
14.2 KiB, 51.5 KiB installed

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

SystemPortVersion
FreeBSDdevel/p5-Data-OptList0.114
OpenBSDdevel/p5-Data-OptList0.115
NetBSDdevel/p5-Data-OptList0.115
DragonFlydevel/p5-Data-OptList0.114
MidnightBSDdevel/p5-Data-OptList0.114
HardenedBSDdevel/p5-Data-OptList0.114
GhostBSDdevel/p5-Data-OptList0.114
OPNsensedevel/p5-Data-OptList0.114

Install

Binary package:

pkg install p5-Data-OptList

From the ports tree:

cd /usr/ports/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

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest0.1140.1140.1120.1140.114
FreeBSD:14:quarterly0.1140.114n/a0.1140.114
FreeBSD:15:latest0.1140.114n/a0.1140.114
FreeBSD:15:quarterly0.1140.114n/an/an/a
FreeBSD:16:latest0.1140.114n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

As this port's Makefile names them.

Build 2

Runtime 2

The full lists below include those, and their dependencies in turn.

Build dependencies 3
Run dependencies 3
Required by 990

The first 100 are listed.

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

Commit history 0

No commits in the history this site was built from.