NAME
MooseX::Types::Varchar - Str type parameterizable by length.
SEE INSTEAD
You probably don't want this - MooseX::Types::Parameterizable is the more general solution.
SYNOPSIS
package MyClass;
use Moose;
use MooseX::Types::Varchar qw/ Varchar /;
has 'attr1' => (is => 'rw', isa => Varchar[40]);
package main;
my $obj = MyClass->new( attr1 => 'this must be under 40 chars' );
DESCRIPTION
This module provides a type based on Str, where a length restriction is paramterizable.
EXPORTS
Nothing by default. You will want to request "Varchar", provided as a MooseX::Types type.
AUTHOR
Chris Andrews <chris@nodnol.org>
COPYRIGHT
This program is Free software, you may redistribute it under the same terms as Perl itself.