Field::Number can already accept a code ref for validation purposes. All fields can take both
a regex and a code ref in the validation hash.
In the most recent release - 0.20010 - the default Number regex can be overridden by the
'regex' element of the validation hash. This allows you to bypass the default decimal number
regex check and replace it with whatever you like. Please note, however, that this will not
make the other Numeric validations (minimum / maximum / step) function on unusually
formatted numbers as they require the value to be something Perl can parse as a number.
Jay
On Thu Dec 16 10:41:29 2010, LGODDARD wrote:
Show quoted text> Could Field::Number be allowed to accept a 'code' ref as does
> Field::String? Then I could validate currency - or maybe a
> ::Field::Currency class (in which case I should maybe point out not all
> currency has a decimal point)?
>
> tia
> lee