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.
| System | Port | Version | Vulnerabilities | Status | Maintainer | Last update |
|---|---|---|---|---|---|---|
| MidnightBSD | devel/p5-Data-OptList | 0.114 behind since 2026-09-12 | no data | - | [email protected] | - |
| FreeBSD | devel/p5-Data-OptList | 0.114 behind since 2026-09-12 | none known | - | [email protected] | - |
| OpenBSD | devel/p5-Data-OptList | 0.115 newest | no data | - | The OpenBSD ports mailing-list <[email protected]> | 2026-09-15 |
| NetBSD | devel/p5-Data-OptList | 0.115 newest | none known | - | [email protected] | 2026-09-12 |
| DragonFly | devel/p5-Data-OptList | 0.114 behind since 2026-09-12 | none known | - | [email protected] | - |
| HardenedBSD | devel/p5-Data-OptList | 0.114 behind since 2026-09-12 | no data | - | [email protected] | - |
| GhostBSD | devel/p5-Data-OptList | 0.114 behind since 2026-09-12 | no data | - | [email protected] | - |
| OPNsense | devel/p5-Data-OptList | 0.114 behind since 2026-09-12 | no data | - | [email protected] | - |
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
p5-Params-Util>=0.14: devel/p5-Params-Utilp5-Sub-Install>=0.92: devel/p5-Sub-Install
Runtime 2
p5-Params-Util>=0.14: devel/p5-Params-Utilp5-Sub-Install>=0.92: devel/p5-Sub-Install
Build dependencies 2
Run dependencies 2
Required by 3
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
| File | Size | SHA256 |
|---|---|---|
| Data-OptList-0.114.tar.gz | 19891 | 9fd1093b917a21fb79ae1607db53d113b4e0ad8fe0ae776cb077a7e50044fdf3 |
Master sites 1
- CPAN