You can't just use $_ >= $error_length{$_}, since $_ is a field name. You need to get the value of that field, and find its length. I've done so using the CGI module.my @error = map $error_msg{$_}, grep length(param($_)) >= $error_length{$_}, @$valids;
In reply to Re: Length validation
by japhy
in thread Length validation
by dwiz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |