Types::PerlVersion - Perl::Version type constraint for Type::Tiny
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.
Peter Mottram (SysPete), <peter at sysnix.com>
<peter at sysnix.com>
Please report any bugs found to:
You can find documentation for this module with the perldoc command.
You can also look for information at:
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.
perl -MCPAN -e shell
For more information on module installation, please visit the detailed CPAN module installation guide.