| Name: | perl-Data-OptList |
|---|---|
| Version: | 0.110 |
| Release: | 7.module+el8.3.0+7729+86a74f64 |
| Architecture: | noarch |
| Module: | perl:5.30:8030020200609055348:8af31532 perl:5.30:8040020200923213406:466ea64f |
| Group: | Development/Libraries |
| Size: | 49889 |
| License: | GPL+ or Artistic |
| RPM: | perl-Data-OptList-0.110-7.module+el8.3.0+7729+86a74f64.noarch.rpm |
| Source RPM: | perl-Data-OptList-0.110-7.module+el8.3.0+7729+86a74f64.src.rpm |
| Build Date: | Tue Aug 11 2020 |
| Build Host: | jenkins-10-147-72-125-df74590a-7496-4915-9dd0-d2fcdb1902bc.appad2iad.osdevelopmeniad.oraclevcn.com |
| Vendor: | Oracle America |
| URL: | http://search.cpan.org/dist/Data-OptList/ |
| Summary: | 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 => { ... },
];
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. |