Data::Predicate
This is a library inspired by Apache Commons Collection Predicate library
and google-collections Predicate library (both Java libraries). Predicates
are transportable logic objects which boil down to a true/false response.
A number of predicates have already been built allowing for the combination
of multiple predicates (and), partial matching (or) or reverse logic
(not). These mixed in with more complex & Perl centric ideas (defined, number
isa) allows us to build very complex logic in portions and then
build a final logic Object to represent the boolean concept.
Predicates are not meant to replace normal if statement logic; more to
supplement it.
Data::Predicate is the core class & default implementations are available
from Data::Predicate::Predicates.
In time this module may develop an XS library but for the moment it is written
in PurePerl (for better or worse).
INSTALLATION
To install this module, run the following commands:
perl Makefile.PL
make
make test
make install
SUPPORT AND DOCUMENTATION
After installing, you can find documentation for this module with the
perldoc command.
perldoc Data::Predicate
You can also look for information at:
RT, CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Data-Predicate
AnnoCPAN, Annotated CPAN documentation
http://annocpan.org/dist/Data-Predicate
CPAN Ratings
http://cpanratings.perl.org/d/Data-Predicate
Search CPAN
http://search.cpan.org/dist/Data-Predicate/
COPYRIGHT AND LICENCE
Copyright (c) 2010 - 2010 European Molecular Biology Laboratory.
Author: Andrew Yates (ayatesattheebi - remove the relevant sections accordingly)
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
3. Neither the name of the Genome Research Ltd nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.