Form::Factory::Feature::Control::Length - A control feature for checking length
version 0.019
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>
<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.
To install Form::Factory, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Form::Factory
CPAN shell
perl -MCPAN -e shell install Form::Factory
For more information on module installation, please visit the detailed CPAN module installation guide.