Declare::Constraints::Simple::Library - Constraint Library Bundle
This module functions as bundle of all default libraries, and as map and/or reference of said ones.
General constraints and constraint-like elements that affect the whole framework.
Provides: Message, Scope, SetResult, IsValid, ReturnTrue, ReturnFalse
Message
Scope
SetResult
IsValid
ReturnTrue
ReturnFalse
Constraints for scalar value validation.
Provides: Matches, IsDefined, HasLength, IsOneOf, IsTrue, IsEq
Matches
IsDefined
HasLength
IsOneOf
IsTrue
IsEq
These validate values by their numerical properties.
Provides: IsNumber, IsInt
IsNumber
IsInt
For validation of values in an object oriented manner.
Provides: IsA, IsClass, IsObject, HasMethods
IsA
IsClass
IsObject
HasMethods
These can validate properties by their reference types.
Provides: IsRefType, IsScalarRef, IsArrayRef, IsHashRef, IsCodeRef, IsRegex
IsRefType
IsScalarRef
IsArrayRef
IsHashRef
IsCodeRef
IsRegex
These constraints deal with array references and their contents.
Provides: HasArraySize, OnArrayElements, OnEvenElements, OnOddElements
HasArraySize
All constraints appliable to hash references as well as their keys and values.
Provides: HasAllKeys, OnHashKeys
HasAllKeys
OnHashKeys
Operators can be used in any place a constraint can be used, as their implementations are similar.
Provides: And, Or, XOr, Not, CaseValid
And
Or
XOr
Not
CaseValid
Declare::Constraints::Simple
Robert 'phaylon' Sedlacek <phaylon@dunkelheit.at>
<phaylon@dunkelheit.at>
This module is free software, you can redistribute it and/or modify it under the same terms as perl itself.
To install Declare::Constraints::Simple, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Declare::Constraints::Simple
CPAN shell
perl -MCPAN -e shell install Declare::Constraints::Simple
For more information on module installation, please visit the detailed CPAN module installation guide.