FormValidator::Nested - form validation
use FormValidator::Nested; use Class::Param; my $req = Class::Param->new({ ... }); my $fvt = FormValidator::Nested->new({ profile_provider => FormValidator::Nested::ProfileProvider::YAML->new({ dir => 't/var/profile', }), }); my $res = $fvt->validate($req, 'login'); if ( $res->has_error ) { my $error_param_ref = $res->error_params; while ( my ( $key, $error_params ) = %{$error_param_ref} ) { foreach my $error_param ( @{$error_params} ) { warn $error_param->msg; } } }
FormValidator::Nested is form validation support nested parameter.
Masahiro Chiba <nihen@megabbs.com>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install FormValidator::Nested, copy and paste the appropriate command in to your terminal.
cpanm
cpanm FormValidator::Nested
CPAN shell
perl -MCPAN -e shell install FormValidator::Nested
For more information on module installation, please visit the detailed CPAN module installation guide.