SEARCH
NEW RPMS
DIRECTORIES
ABOUT
FAQ
VARIOUS
BLOG

 
 

perl-enum rpm build for : openSUSE Leap 42. For other distributions click perl-enum.

Name : perl-enum
Version : 1.11 Vendor : obs://build_opensuse_org/devel:languages:perl
Release : 1.2 Date : 2016-10-29 14:17:53
Group : Development/Libraries/Perl Source RPM : perl-enum-1.11-1.2.src.rpm
Size : 0.02 MB
Packager : (none)
Summary : C style enumerated types and bitmask flags in Perl
Description :
This module is used to define a set of constants with ordered numeric
values, similar to the \'enum\' type in the C programming language. You can
also define bitmask constants, where the value assigned to each constant
has exactly one bit set (eg 1, 2, 4, 8, etc).

What are enumerations good for? Typical uses would be for giving mnemonic
names to indexes of arrays. Such arrays might be a list of months, days, or
a return value index from a function such as localtime():

use enum qw(
:Months_=0 Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec
:Days_=0 Sun Mon Tue Wed Thu Fri Sat
:LC_=0 Sec Min Hour MDay Mon Year WDay YDay Isdst
);

if ((localtime)[LC_Mon] == Months_Jan) {
print \"It\'s January!\
\";
}
if ((localtime)[LC_WDay] == Days_Fri) {
print \"It\'s Friday!\
\";
}

This not only reads easier, but can also be typo-checked at compile time
when run under *use strict*. That is, if you misspell *Days_Fri* as
*Days_Fry*, you\'ll generate a compile error.

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

Content of RPM  Changelog  Provides Requires

Hmm ... It's impossible ;-) This RPM doesn't exist on any FTP server

Provides :
perl(enum)
perl-enum

Requires :
perl(:MODULE_COMPAT_5.18.2)
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(PayloadIsLzma) <= 4.4.6-1


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

 
ICM