SEARCH
NEW RPMS
DIRECTORIES
ABOUT
FAQ
VARIOUS
BLOG

 
 

perl-Type-Tie rpm build for : OpenSuSE. For other distributions click perl-Type-Tie.

Name : perl-Type-Tie
Version : 0.015 Vendor : obs://build_opensuse_org/devel:languages:perl
Release : lp156.1.1 Date : 2024-07-03 19:17:49
Group : Development/Libraries/Perl Source RPM : perl-Type-Tie-0.015-lp156.1.1.src.rpm
Size : 0.06 MB
Packager : https://www_suse_com/
Summary : Tie a variable to a type constraint
Description :
This module exports a single function: \'ttie\'. \'ttie\' ties a variable to a
type constraint, ensuring that whatever values stored in the variable will
conform to the type constraint. If the type constraint has coercions, these
will be used if necessary to ensure values assigned to the variable
conform.

use Type::Tie;
use Types::Standard qw( Int Num );

ttie my $count, Int->plus_coercions(Num, \'int $_\'), 0;

$count++; # ok
$count = 2; # ok
$count = 3.14159; # ok, coerced to 3
$count = \"Monkey!\"; # dies

While the examples in documentation (and the test suite) show type
constraints from Types::Standard, but any type constraint objects
supporting the Type::API interfaces should work. This includes:

* Moose::Meta::TypeConstraint / MooseX::Types

* Mouse::Meta::TypeConstraint / MouseX::Types

* Specio

* Type::Tiny

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

Content of RPM  Provides Requires

Download
ftp.icm.edu.pl  perl-Type-Tie-0.015-lp156.1.1.noarch.rpm
     

Provides :
perl(Type::Nano)
perl(Type::Tie)
perl(Type::Tie::ARRAY)
perl(Type::Tie::BASE)
perl(Type::Tie::HASH)
perl(Type::Tie::SCALAR)
perl-Type-Tie

Requires :
perl(:MODULE_COMPAT_5.26.1)
perl(Exporter::Tiny) >= 0.026
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/Type
/usr/lib/perl5/vendor_perl/5.26.1/Type/Nano.pm
/usr/lib/perl5/vendor_perl/5.26.1/Type/Tie.pm
/usr/lib/perl5/vendor_perl/5.26.1/x86_64-linux-thread-multi
/usr/share/doc/packages/perl-Type-Tie
/usr/share/doc/packages/perl-Type-Tie/COPYRIGHT
/usr/share/doc/packages/perl-Type-Tie/CREDITS
/usr/share/doc/packages/perl-Type-Tie/Changes
/usr/share/doc/packages/perl-Type-Tie/README
/usr/share/doc/packages/perl-Type-Tie/doap.ttl
/usr/share/licenses/perl-Type-Tie
/usr/share/licenses/perl-Type-Tie/LICENSE
/usr/share/man/man3/Type::Nano.3pm.gz
/usr/share/man/man3/Type::Tie.3pm.gz

 
ICM