This queue is for tickets about the Params-Check CPAN distribution.

Report information
The Basics
Id:
81201
Status:
new
Priority:
Low/Low
Queue:

People
Owner:
Nobody in particular
Requestors:
djerius [...] cpan.org
Cc:
AdminCc:

BugTracker
Severity:
(no value)
Broken in:
0.36
Fixed in:
(no value)



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



This service runs on Request Tracker, is sponsored by The Perl Foundation, and maintained by Best Practical Solutions.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.