SEARCH
NEW RPMS
DIRECTORIES
ABOUT
FAQ
VARIOUS
BLOG

 
 

perl-PerlX-Maybe rpm build for : OpenSuSE. For other distributions click perl-PerlX-Maybe.

Name : perl-PerlX-Maybe
Version : 1.202 Vendor : obs://build_opensuse_org/devel:kanku
Release : lp155.8.3 Date : 2023-05-17 15:58:04
Group : Unspecified Source RPM : perl-PerlX-Maybe-1.202-lp155.8.3.src.rpm
Size : 0.05 MB
Packager : https://www_suse_com/
Summary : return a pair only if they are both defined
Description :
Moose classes (and some other classes) distinguish between an attribute
being unset and the attribute being set to undef. Supplying a constructor
arguments like this:

my $bob = Person->new(
name => $name,
age => $age,
);

Will result in the \'name\' and \'age\' attributes possibly being set to undef
(if the corresponding \'$name\' and \'$age\' variables are not defined), which
may violate the Person class\' type constraints.

(Note: if you are the _author_ of the class in question, you can solve this
using MooseX::UndefTolerant. However, some of us are stuck using
non-UndefTolerant classes written by third parties.)

To ensure that the Person constructor does not try to set a name or age at
all when they are undefined, ugly looking code like this is often used:

my $bob = Person->new(
defined $name ? (name => $name) : (),
defined $age ? (age => $age) : (),
);

or:

my $bob = Person->new(
(name => $name) x!!(defined $name),
(age => $age) x!!(defined $age),
);

A slightly more elegant solution is the \'maybe\' function.

RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/kanku:/perl/15.5/noarch

Content of RPM  Changelog  Provides Requires

Download
ftp.icm.edu.pl  perl-PerlX-Maybe-1.202-lp155.8.3.noarch.rpm
     

Provides :
perl(PerlX::Maybe)
perl(PerlX::Maybe)
perl(Syntax::Feature::Maybe)
perl-PerlX-Maybe

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/PerlX
/usr/lib/perl5/vendor_perl/5.26.1/PerlX/Maybe.pm
/usr/lib/perl5/vendor_perl/5.26.1/Syntax
/usr/lib/perl5/vendor_perl/5.26.1/Syntax/Feature
/usr/lib/perl5/vendor_perl/5.26.1/Syntax/Feature/Maybe.pm
/usr/lib/perl5/vendor_perl/5.26.1/x86_64-linux-thread-multi
/usr/share/doc/packages/perl-PerlX-Maybe
/usr/share/doc/packages/perl-PerlX-Maybe/COPYRIGHT
/usr/share/doc/packages/perl-PerlX-Maybe/CREDITS
/usr/share/doc/packages/perl-PerlX-Maybe/Changes
/usr/share/doc/packages/perl-PerlX-Maybe/README
/usr/share/doc/packages/perl-PerlX-Maybe/doap.ttl
/usr/share/licenses/perl-PerlX-Maybe
/usr/share/licenses/perl-PerlX-Maybe/LICENSE
/usr/share/man/man3/PerlX::Maybe.3pm.gz
/usr/share/man/man3/Syntax::Feature::Maybe.3pm.gz

 
ICM