in reply to Efficient way to do field validation
And you definitely have tell us why the first decimal value, "11.00" fails your notion of validation -- apparently because the length doesn't match the max digit or decimal digit counts in the spec "decimal(5,3)" -- while the name "BILL" passes but clearly isn't the max of "varchar(5)".
OTOH, it looks to me as though you can solve most of the rest of your problem by reading perldoc -f length and or perldoc perlre with specific reference to quantifiers.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Efficient way to do field validation
by govindkailas (Acolyte) on Jul 31, 2013 at 14:00 UTC | |
by ww (Archbishop) on Jul 31, 2013 at 16:56 UTC | |
by govindkailas (Acolyte) on Aug 01, 2013 at 05:25 UTC |