in reply to Problems with not so trivial data validation using Data::FormValidator
I've never used Data::FormValidator, but looking at your code and the error message leads me to think that your second constraint should be more like:
{ constraint=>sub {after_today('%m%y')}, name => 'card_expired' }
I came to that conclusion because after_today('%m%y') by itself isn't a code reference, but a function call. (Of course if after_today returned a code reference, then my suggestion is worth a bucket of mud.)
Also for block quotes, I tend to use <blockquote><i> ... </i></blockquote>.
...roboticus
When your only tool is a hammer, all problems look like your thumb.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Problems with not so trivial data validation using Data::FormValidator
by ted.byers (Monk) on Feb 01, 2013 at 01:33 UTC | |
by roboticus (Chancellor) on Feb 01, 2013 at 02:05 UTC | |
by ted.byers (Monk) on Feb 01, 2013 at 02:49 UTC |