Unexpected::Types - Defines type constraints
use Unexpected::Types qw(ArrayRef SimplStr);
Defines type constraints used throughout this distribution. The types defined are replacements for those found in MooseX::Types::Common and MooseX::Types::LoadableClass but based on Type::Tiny rather than MooseX::Types
Extends Types::Standard so you can import any TCs that module exports
Defines the following type constraints;
LoadableClass
A classname that is loaded and compiled using require_module
NonEmptySimpleStr
A string of at least one character and no more than 255 characters that contains no newlines
NonNumericSimpleStr
A simple string that does not contain any digits
NonZeroPositiveInt
A non zero positive integer
NonZeroPositiveNum
A non zero positive number
PositiveInt
A positive integer including zero
PositiveNum
A positive number including zero
SimpleStr
A string of than 255 characters that contains no newlines
Tracer
An object reference that implements the frames method
frames
Defines no attributes
None
There are no known incompatibilities in this module
There are no known bugs in this module. Please report problems to the address below. Patches are welcome
Larry Wall - For the Perl programming language
Peter Flanigan, <pjfl@cpan.org>
<pjfl@cpan.org>
Copyright (c) 2014 Peter Flanigan. All rights reserved
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic
This program is distributed in the hope that it will be useful, but WITHOUT WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE
To install Unexpected, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Unexpected
CPAN shell
perl -MCPAN -e shell install Unexpected
For more information on module installation, please visit the detailed CPAN module installation guide.