Parse and validate simple name/value option pairs

Edit Package perl-Data-OptList

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 => { ... },
];

Just look at all those undefs! Don't worry, we can get rid of those:

$values = [
map { $_ => undef } qw(foo bar baz),
xyz => { ... },
];

Aaaauuugh! We've saved a little typing, but now it requires thought to
read, and thinking is even worse than typing.

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.

Author: Ricardo SIGNES,

Refresh
Refresh
Source Files
Filename Size Changed
Data-OptList-0.114.tar.gz 0000019891 19.4 KB
cpanspec.yml 0000000669 669 Bytes
perl-Data-OptList.changes 0000003423 3.34 KB
perl-Data-OptList.spec 0000002626 2.56 KB
Latest Revision
Ruediger Oertel's avatar Ruediger Oertel (oertel) committed (revision 1)
bugowner: group:qe-tools-team
Add/update package to be able to eventually submit openQA
Those packages are required to run of openQA (and not just build it). All those packages should go into the same staging.
https://jira.suse.com/browse/PED-9876
further details: https://progress.opensuse.org/issues/165683
Comments 0
openSUSE Build Service is sponsored by