SEARCH
NEW RPMS
DIRECTORIES
ABOUT
FAQ
VARIOUS
BLOG

 
 

perl-Getopt-Attribute rpm build for : OpenSuSE. For other distributions click perl-Getopt-Attribute.

Name : perl-Getopt-Attribute
Version : 2.101700 Vendor : obs://build_opensuse_org/devel:languages:perl
Release : lp154.6.1 Date : 2023-01-27 16:53:44
Group : Development/Libraries/Perl Source RPM : perl-Getopt-Attribute-2.101700-lp154.6.1.src.rpm
Size : 0.03 MB
Packager : https://www_suse_com/
Summary : Attribute wrapper for Getopt::Long
Description :
Note: This version of the module works works with perl 5.8.0. If you need
it to work with perl 5.6.x, please use an earlier version from CPAN.

This module provides an attribute wrapper around \'Getopt::Long\'. Instead of
declaring the options in a hash with references to the variables and
subroutines affected by the options, you can use the \'Getopt\' attribute on
the variables and subroutines directly.

As you can see from the Synopsis, the attribute takes an argument of the
same format as you would give as the hash key for \'Getopt::Long\'. See the
\'Getopt::Long\' manpage for details.

Note that since attributes are processed during CHECK, but assignments on
newly declared variables are processed during run-time, you can\'t set
defaults on those variables beforehand, like this:

our $verbose : Getopt(verbose!) = 1; # DOES NOT WORK

Instead, you have to establish defaults afterwards, like so:

our $verbose : Getopt(verbose!);
$verbose ||= 1;

Alternatively, you can specify a default value within the \'Getopt\'
attribute:

our $def2 : Getopt(def2=i 42);

To check whether there was an error during \'getopt\' processing you can use
the \'error()\' function:

pod2usage(-verbose => 2, -exitval => 0) if Getopt::Attribute->error;

RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl:/CPAN-G/15.4/noarch

Content of RPM  Provides Requires

Download
ftp.icm.edu.pl  perl-Getopt-Attribute-2.101700-lp154.6.1.noarch.rpm
     

Provides :
perl(Getopt::Attribute)
perl-Getopt-Attribute

Requires :
perl(:MODULE_COMPAT_5.26.1)
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(FileDigests) <= 4.6.0-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(PayloadIsXz) <= 5.2-1


Content of RPM :
/usr/lib/perl5/vendor_perl/5.26.1/Getopt
/usr/lib/perl5/vendor_perl/5.26.1/Getopt/Attribute.pm
/usr/lib/perl5/vendor_perl/5.26.1/x86_64-linux-thread-multi
/usr/share/doc/packages/perl-Getopt-Attribute
/usr/share/doc/packages/perl-Getopt-Attribute/Changes
/usr/share/doc/packages/perl-Getopt-Attribute/LICENSE
/usr/share/doc/packages/perl-Getopt-Attribute/README
/usr/share/man/man3/Getopt::Attribute.3pm.gz

 
ICM