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

version 0.020

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

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

The optional minimum length permitted for the string.
The optional maximum length permitted for the string.

Makes sure the value is a Form::Factory::Control::Role::ScalarValue.
Verifies that the value of the control is not too short or too long.

Andrew Sterling Hanenkamp <hanenkamp@cpan.org>

Copyright 2009 Qubling Software LLC.
This library is free software. You can redistribute it and/or modify it under the same terms as Perl itself.