Subject: | Error in Data::FormValidator::Costraints Documentation |
Date: | Wed, 16 Jan 2008 21:37:42 +0530 |
To: | bug-Data-FormValidator [...] rt.cpan.org |
From: | K B Shiv Kumar <shiv.kumar [...] in.spectranet.com> |
Hi,
I feel the syntax of a line in the documentation is incorrect. Rather
the syntax is correct but the idea is not conveyed.
Module: Data::FormValidator::Costraints
Version: 4.57
Release: 2nd Nov 2007
Section: WRITING YOUR OWN CONSTRAINT ROUTINES
Sub Section: New School Constraints Overview
Code Snippet: 2nd
SubRoutine: coolness
Line No: 14
Reference URL:
(http://search.cpan.org/~markstos/Data-FormValidator-4.57/lib/Data/FormValidator/Constraints.pm#New_School_Constraints_Overview)
It should read..
my $has_all_three = ($data->{$personality} && $data->{$smarts} &&
data->{$looks});
instead of
my $has_all_three = ($data->{personality} && $data->{smarts} &&
$data->{looks});
The $(dollar is missing). I beg pardon if I am wrong. Kindly trash this
mail if so. If I am correct I'll soon hope to see an updated version!!
Cheers,
Shiv