p5-Data-OptList
0.114Parse and validate simple name/value option pairs
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.
Origin: devel/p5-Data-OptList
Category: devel
Size: 51.5KiB
License: ART10, GPLv1+
Maintainer: perl@FreeBSD.org
Dependencies: 3 packages
Required by: 7 packages
Website: metacpan.org/release/Data-OptList
$
pkg install p5-Data-OptListDependencies (3)
Required By (7 packages)
More in devel
ruby33-gems3.7.2
Package management framework for the Ruby languagegettext-runtime0.26
GNU gettext runtime libraries and programsglib2.84.4,2
Some useful routines of C programming (current stable version)desktop-file-utils0.28
Couple of command line utilities for working with desktop entriesqt6-base6.10.1_1
Qt base (core, gui, widgets, network,...)qt5-core5.15.18p109
Qt core non-graphical module (KDE patched)rubygem-aws-sigv41.12.1
Amazon Web Services Signature Version 4 signing libraryphp84-pear1.10.17
PEAR framework for PHPrubygem-aws-sdk-core3.240.0
AWS SDK for Ruby - Corephp82-pear1.10.17
PEAR framework for PHP