The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

SparkX::Form::Field::Validator::MinLength - Validates a field is at least a given size

VERSION

version 0.2102

DESCRIPTION

A minimum length enforcement mix-in. Adds two fields plus action. Makes sure that value is at least min_length characters long.

ACCESSORS

min_length => Int

The minimum length you desire. Required. In a subclass, you can:

 has '+min_length' => (required => 0,default => sub { $HOW_LONG });

if you want to have it optional with a default

errmsg_too_short => Str

Error message to be shown if value is too short.

AUTHOR

  James Laver L<http://jameslaver.com>

COPYRIGHT AND LICENSE

This software is copyright (c) 2009 by James Laver <sprintf qw(%s@%s.%s cpan jameslaver com)>.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.