On 2005-07-02, Cees Hek <suppressed> wrote:
>
> You can do that with the current version as long as you use an
> anonymous subroutine (hence a closure):
>
> 'constraints' => {
> 'email' => sub { _check_email( $self->dbh, @_ ) },
> },
Or like this:
{
constraint_method => 'zip_or_postal_code',
params => [$DBH],
}
I somewhat prefer the style Cees' suggested though, because the parameter
passing looks a little more normal.
Mark
--
http://mark.stosberg.com/
---------------------------------------------------------------------
Web Archive: http://www.mail-archive.com/suppressed/
http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: suppressed
For additional commands, e-mail: suppressed
Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.