dwiz has asked for the wisdom of the Perl Monks concerning the following question:
Have I covered all my bases on this issue?#$valids is an array reference returned by HTML::FormValidator my @error; foreach (@$valids) { #%error_msg contains something like "first => "First name is too long +" #%error_length contains something like "first => 45" push @error, { message => $error_msg{$_} } if $_ >= $error_length{$_} };
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Length validation
by japhy (Canon) on Jun 07, 2001 at 18:45 UTC | |
|
Re: Length validation
by tachyon (Chancellor) on Jun 07, 2001 at 18:53 UTC | |
|
Re: Length validation
by arturo (Vicar) on Jun 07, 2001 at 18:50 UTC | |
|
Re: Length validation
by earthboundmisfit (Chaplain) on Jun 07, 2001 at 19:10 UTC | |
|
Re: Length validation
by Beatnik (Parson) on Jun 07, 2001 at 22:10 UTC | |
by mr_mischief (Monsignor) on Jun 08, 2001 at 00:26 UTC |