Hi All!

I try to using CPAN module HTML::Validator and have some problems. May be
you can help me ;)

In module's description written (for part where constraint has been
described):
--
constraints

This is a reference to an hash which contains the constraints that will be
used to check wheter or not the field contains valid data. Constraint can be
either the name of a builtin constraint function (see below), a perl regexp
or an anonymous subroutine which will check the input and return true or
false depending on the input's validity.
--

When I try using this one (as constraint rule - my own function)
--
p1 => {
              constraints => valid_equiv,
              params => [qw (p1 p2)]
      }
valid_equiv as &main::valid_equiv
--
I receive an error(something like that):
'Undefined subroutine &HTML::FormValidator::valid_ called at
C:/Perl/lib/HTML/FormValidator.pm line 401'

Who now how to call own subroutine in correct way please help!

--
Maryana



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to