Form::Tiny::Strict - mark input with extra data as invalid
# in your form class use Form::Tiny -strict; # optional - 1 by default, 0 turns strict checking off sub build_strict { 0 }
This is a simple role that will cause any extra data on input to fail the form validation.
For example, if your form contains many optional fields which change often, you may want to ensure that your users are not sending anything you're not going to handle. This can help debugging and prevent errors.
Stores a single boolean, which determines if strict checking is turned on. Turning it off effectively disables the role.
writer: set_strict
This method should return the default value for the strict attribute.
It is optional and returns 1 by default.
To install Form::Tiny, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Form::Tiny
CPAN shell
perl -MCPAN -e shell install Form::Tiny
For more information on module installation, please visit the detailed CPAN module installation guide.