Parse and validate simple name/value option pairs
42.30 KB
built 2026-10-16 18:22:01 GMT
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:
$values = 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.
Dependencies
21 totalRequires20
- coreutils
- findutils
- make
- perl(:VERSION) >= 5.12
- perl(CPAN::Meta) >= 2.120900
- perl(CPAN::Meta::Prereqs)
- perl(Encode)
- perl(ExtUtils::MakeMaker) >= 6.78
- perl(File::Spec)
- perl(List::Util)
- perl(Params::Util)
- perl(Sub::Install) >= 0.921
- perl(Test::More) >= 0.88
- perl(Test::Pod) >= 1.41
- perl(strict)
- perl(warnings)
- perl-generators
- perl-interpreter
- rpmlib(CompressedFileNames) <= 3.0.4-1
- rpmlib(FileDigests) <= 4.6.0-1
Provides1
- perl-Data-OptList = 0.114-9.fc45
ObsoletesNo Obsoletes
ConflictsNo Conflicts
RecommendsNo Recommends
SuggestsNo Suggests
SupplementsNo Supplements
EnhancesNo Enhances
Files
2Name ![]() |
Size |
|---|---|
| Data-OptList-0.114.tar.gz | 19.42 KB |
| perl-Data-OptList.spec | 11.52 KB |
Files 1–2 of 2
Component of
buildroots that installed this RPMNo Buildroots
