Hyper::Validator::Single::Required - Validator for required values |
Hyper::Validator::Single::Required - Validator for required values
This document describes Hyper::Validator::Single::Required 0.01
use Hyper::Validator::Single::Required;
my $validator = Hyper::Validator::Single::Required->new(); my $invalid = $validator->is_valid(undef); my $valid = $validator->is_valid(1);
Hyper::Validator::Single::Required is used for checking if a value is defined and not an empty string.
$validator->VALIDATE($value);
Called from Hyper::Validator::is_valid for the validation.
version
Class::Std::Storable
Hyper::Validator::Single
$Author: ac0v $
$Id: Required.pm 317 2008-02-16 01:52:33Z ac0v $
$Revision: 317 $
$Date: 2008-02-16 02:52:33 +0100 (Sa, 16 Feb 2008) $
$HeadURL: http://svn.hyper-framework.org/Hyper/Hyper/tags/0.05/lib/Hyper/Validator/Single/Required.pm $
Andreas Specht <ACID@cpan.org>
Copyright (c) 2007, Andreas Specht <ACID@cpan.org>
.
All rights reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Hyper::Validator::Single::Required - Validator for required values |