Index | index by Group | index by Distribution | index by Vendor | index by creation date | index by Name | Mirrors | Help | Search |
Name: perl-Data-OptList | Distribution: openSUSE Tumbleweed |
Version: 0.114 | Vendor: openSUSE |
Release: 1.8 | Build date: Sun May 7 05:06:53 2023 |
Group: Unspecified | Build host: reproducible |
Size: 35997 | Source RPM: perl-Data-OptList-0.114-1.8.src.rpm |
Packager: http://bugs.opensuse.org | |
Url: https://metacpan.org/release/Data-OptList | |
Summary: Parse 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 => { ... }, ]; 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... and it's got a bug! It looked right, didn't it? Well, the 'xyz => { ... }' gets consumed by the map, and we don't get the data we wanted. 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.
Artistic-1.0 OR GPL-1.0-or-later
* Sun May 07 2023 Tina Müller <timueller+perl@suse.de> - updated to 0.114 see /usr/share/doc/packages/perl-Data-OptList/Changes 0.114 2023-05-06 17:25:36-04:00 America/New_York - Data::OptList now requires perl v5.12.0 - tests no longer add "-T" to shebang, so do not invoke taint mode * Mon Jan 02 2023 Tina Müller <timueller+perl@suse.de> - updated to 0.113 see /usr/share/doc/packages/perl-Data-OptList/Changes 0.113 2022-12-31 21:07:47-05:00 America/New_York - update author contact info * Sun Jun 27 2021 Tina Müller <timueller+perl@suse.de> - updated to 0.112 see /usr/share/doc/packages/perl-Data-OptList/Changes 0.112 2021-06-26 11:01:31-04:00 America/New_York - no changes since last trial release (0.111) 0.111 2021-06-20 20:55:10-04:00 America/New_York (TRIAL RELEASE) - update author contact info - add perl version support to docs - replace a "goto" deep in the guts with a sub call, for speed (thanks, Olivier Mengué and Graham Knop) * Tue Mar 29 2016 coolo@suse.com - updated to 0.110 see /usr/share/doc/packages/perl-Data-OptList/Changes 0.110 2016-03-24 21:20:54-04:00 America/New_York - major optimization to mkopt (thanks, Olivier Mengué) * Wed Dec 18 2013 coolo@suse.com - updated to 0.109 update bugtracker and repo links * Tue Jul 16 2013 coolo@suse.com - updated to 0.108 repackage, new bug tracker * Fri Mar 16 2012 lars@linux-schulserver.de - remove old_test_more.patch and use sed statement instead (less likely to break with every package update) * Wed Feb 29 2012 ro@suse.de - add old_test_more patch to build with sle11 * Sat Nov 19 2011 coolo@suse.com - update to 0.107 mkopt now prefers named parameters; docs updated added the name_test parameter to mkopt * Tue Nov 30 2010 coolo@novell.com - switch to perl_requires macro
/usr/lib/perl5/vendor_perl/5.40.0/Data /usr/lib/perl5/vendor_perl/5.40.0/Data/OptList.pm /usr/share/doc/packages/perl-Data-OptList /usr/share/doc/packages/perl-Data-OptList/Changes /usr/share/doc/packages/perl-Data-OptList/README /usr/share/licenses/perl-Data-OptList /usr/share/licenses/perl-Data-OptList/LICENSE /usr/share/man/man3/Data::OptList.3pm.gz
Generated by rpm2html 1.8.1
Fabrice Bellet, Sun Feb 9 01:37:00 2025