Subject: | Documentation Bugs |
The SYNOPSIS provides an example of using the allow option:
phone => { allow => [ sub { return 1 if /$valid_re/ }, '1-800-PERL' ] },
This implies that the value to be validated is stored in $_ ; it's really stored in $_[0].
In addition, the documentation for the allow subroutine does not specify how the value to be validated is passed in. It'd be nice if it did.
Thanks!
Diab
phone => { allow => [ sub { return 1 if /$valid_re/ }, '1-800-PERL' ] },
This implies that the value to be validated is stored in $_ ; it's really stored in $_[0].
In addition, the documentation for the allow subroutine does not specify how the value to be validated is passed in. It'd be nice if it did.
Thanks!
Diab