Form::Tiny::Error - form validation process error
my $field = $error->field; # field name or undef my $error = $error->error; # error message or nested error object my $message = $error->as_string;
Form errors feature field name which caused validation error, error message and automatic stringification.
The $error->error can return a nested error object in case of nested forms.
$error->error
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.