Form::Factory::Feature::Control::MatchCode - Greps the control value for correctness
version 0.022
has_control even_value => ( control => 'text', features => { match_code => { message => 'the value in %s is not even', code => sub { shift % 2 == 0 }, }, }, );
Runs the control value against a code reference during the check. If that code reference returns a false value, an error is generated.
This is the code reference. It should expect a single argument to be passed, which is the value to check.
No op.
Does the work of running the given subroutine over the control value and reports an error if the code reference runs and returns a false value.
Andrew Sterling Hanenkamp <hanenkamp@cpan.org>
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.
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.