perleager has asked for the wisdom of the Perl Monks concerning the following question:
I've also tried this the reversed way where constraint, american_phone is the key.require_some => { # require any two fields from this group city_or_state_or_zipcode => [ 2, qw/city state zipcode/ ], } So I tried doing: require_some => { # require any two fields from this group american_phone => [ 2, qw/p1 p2 p3/ ], #the input field names are +p1 p2 p3, american_phone is the constraint name. }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: using Data::FormValidator to validate phone numbers
by jweed (Chaplain) on Mar 17, 2004 at 06:03 UTC |