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

NAME

Form::Factory::Feature::Control::Length - A control feature for checking length

VERSION

version 0.022

SYNOPSIS

  has_control login_name => (
      control => 'text',
      feature => {
          length => {
              minimum => 3,
              maximum => 15,
          },
      },
  );

DESCRIPTION

Linked to a control, it checks to see that the string is not too short or too long.

ATTRIBUTES

minumum

The optional minimum length permitted for the string.

maximum

The optional maximum length permitted for the string.

METHODS

check_control

Makes sure the value is a Form::Factory::Control::Role::ScalarValue.

check

Verifies that the value of the control is not too short or too long.

AUTHOR

Andrew Sterling Hanenkamp <hanenkamp@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2015 by Qubling Software LLC.

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