-
-
01 May 2015 14:46:08 UTC
- Distribution: Types-PerlVersion
- Module version: 0.002
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Repository
- Issues
- Testers (910 / 0 / 0)
- Kwalitee
Bus factor: 1- 100.00% Coverage
- License: perl_5
- Perl: v5.6.0
- Activity
24 month- Tools
- Download (3.62KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- Dependencies
- Perl::Version
- Type::Tiny
- and possibly others
- Reverse dependencies
- CPAN Testers List
- Dependency graph
- NAME
- VERSION
- SYNOPSIS
- DESCRIPTION
- AUTHOR
- BUGS
- SUPPORT
- SEE ALSO
- ACKNOWLEDGEMENTS
- LICENSE AND COPYRIGHT
NAME
Types::PerlVersion - Perl::Version type constraint for Type::Tiny
VERSION
Version 0.002
SYNOPSIS
package MyApp::Thingie; use Moose; use Types::PerlVersion qw/PerlVersion/; has version => ( is => 'ro', isa => PerlVersion, coerce => 1, required => 1, );
DESCRIPTION
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.
Types
This module provides the single type constraint
PerlVersion
. Coercion is provided fromStr
andNum
types.AUTHOR
Peter Mottram (SysPete),
<peter at sysnix.com>
BUGS
Please report any bugs found to:
https://github.com/SysPete/p5-Types-PerlVersion/issues
SUPPORT
You can find documentation for this module with the perldoc command.
perldoc Types::PerlVersion
You can also look for information at:
SEE ALSO
If you prefer to use MooseX::Types then see MooseX::Types::PerlVersion which was the basis of this module.
ACKNOWLEDGEMENTS
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.
LICENSE AND COPYRIGHT
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.
Module Install Instructions
To install Types::PerlVersion, copy and paste the appropriate command in to your terminal.
cpanm Types::PerlVersion
perl -MCPAN -e shell install Types::PerlVersion
For more information on module installation, please visit the detailed CPAN module installation guide.