in reply to Length validation
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;
|
|---|