NAME
Data::TreeValidator::Constraints - A collection of constraints for validating data
SYNOPSIS
use Data::TreeValidator::Constraints qw( required );
DESCRIPTION
Constraints currently take a single form, a subroutine reference. If the data does not validate, an exception will be raised (which is caught by process methods). If an exception is not raised, the data will be assumed to be valid.
All methods below are available for importing into using modules
METHODS
required($input)
Checks that $input is defined, and stringifies to a true value (not the empty string)
AUTHOR
Oliver Charles
COPYRIGHT AND LICENSE
This software is copyright (c) 2010 by Oliver Charles <oliver.g.charles@googlemail.com>.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.