Types::PerlVersion - Perl::Version type constraint for Type::Tiny
Version 0.002
package MyApp::Thingie; use Moose; use Types::PerlVersion qw/PerlVersion/; has version => ( is => 'ro', isa => PerlVersion, coerce => 1, required => 1, );
Types::PerlVersion is a type constraint suitable for use with Moo/Moose attributes that need to deal with version strings as handled by Perl::Version.
This module provides the single type constraint PerlVersion. Coercion is provided from Str and Num types.
PerlVersion
Str
Num
Peter Mottram (SysPete), <peter at sysnix.com>
<peter at sysnix.com>
Please report any bugs found to:
https://github.com/SysPete/p5-Types-PerlVersion/issues
You can find documentation for this module with the perldoc command.
perldoc Types::PerlVersion
You can also look for information at:
GitHub repository
meta::cpan
If you prefer to use MooseX::Types then see MooseX::Types::PerlVersion which was the basis of this module.
Toby Inkster for his excellent Type::Tiny, brian d foy for Perl::Version and Roman F. for MooseX::Types::PerlVersion from which I stole most of the code for this module.
Copyright 2015 Peter Mottram (SysPete).
This program is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Types::PerlVersion, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Types::PerlVersion
CPAN shell
perl -MCPAN -e shell install Types::PerlVersion
For more information on module installation, please visit the detailed CPAN module installation guide.