Quoted from here:
my $result = FormValidator::Simple->check( $query => [
param1 => ['NOT_BLANK', 'ASCII', ['LENGTH', 2, 5]],
param2 => ['NOT_BLANK', 'INT' ],
mail1 => ['NOT_BLANK', 'EMAIL_LOOSE'],
mail2 => ['NOT_BLANK', 'EMAIL_LOOSE'],
{ mails => ['mail1', 'mail2' ] } => ['DUPLICATION'],
{ date => ['year', 'month', 'day'] } => ['DATE'],
] );
IMO it should be :
my $result = FormValidator::Simple->check( $query => {
...
} );
Why does FormValidator::Simple prefer array to hash?
Are you suggesting you should be able to use
That would pass the following
There’s lots of information missing.