Dependency of ::import::i586::libxine1-32bit-1.1.21-9.3.x86_64.rpm
Name: perl-Data-OptList
Project: openSUSE_11.4
Repository: oss
Title: Parse and validate simple name/value option pairs
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 => { ... },
];
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, <rjbs@cpan.org>
Version: 0.106
Release: 6.1
Architecture: noarch
Size: 17.9 KB
Build Time: 2011-02-18 22:45:34 +0100 (over 13 years ago)
Provides
Symbol | Required by |
---|---|
perl(Data::OptList) = 0.106 | perl-Moose perl-Class-MOP perl-Sub-Exporter |
perl-Data-OptList = 0.106-6.1 |
Requires
Symbol | Provided by |
---|---|
perl = 5.12.3 | perl |
perl(List::Util) >= 0.00 | perl-base-32bit perl-base |
perl(Sub::Install) >= 0.921 | perl-Sub-Install |
perl(Params::Util) >= 0.14 | perl-Params-Util |