Index index by Group index by Distribution index by Vendor index by creation date index by Name Mirrors Help Search

perl-Data-OptList-0.110-bp153.1.32 RPM for noarch

From OpenSuSE Leap 15.3 for noarch

Name: perl-Data-OptList Distribution: SUSE Linux Enterprise 15 SP3
Version: 0.110 Vendor: openSUSE
Release: bp153.1.32 Build date: Fri Mar 5 23:25:21 2021
Group: Development/Libraries/Perl Build host: sheep86
Size: 35007 Source RPM: perl-Data-OptList-0.110-bp153.1.32.src.rpm
Packager: https://bugs.opensuse.org
Url: http://search.cpan.org/dist/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.

Provides

Requires

License

Artistic-1.0 or GPL-1.0+

Changelog

* 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
* Sun Apr 11 2010 chris@computersalat.de
  - update to 0.106
    * correct version style mismatch for Sub::Install (thanks, brian d foy)
  - 0.105     2010-01-14
    * fix a typo in documenation (thanks, Florian Ragwitz)
  - removed .packlist, perllocal.pod files
    > noarch package
  - cleanup spec
    o fix HEADER
    o update License, Url, Source
    o fix deps
    - perl-macros deps
    - perl(Sub::Install) >= 0.921
    o update description
    o macro usage
* Sun Jun 21 2009 chris@computersalat.de
  - initial package 0.104

Files

/usr/lib/perl5/vendor_perl/5.26.1/Data
/usr/lib/perl5/vendor_perl/5.26.1/Data/OptList.pm
/usr/lib/perl5/vendor_perl/5.26.1/x86_64-linux-thread-multi
/usr/share/doc/packages/perl-Data-OptList
/usr/share/doc/packages/perl-Data-OptList/Changes
/usr/share/doc/packages/perl-Data-OptList/LICENSE
/usr/share/doc/packages/perl-Data-OptList/README
/usr/share/man/man3/Data::OptList.3pm.gz


Generated by rpm2html 1.8.1

Fabrice Bellet, Tue Apr 9 14:50:04 2024