NAME
Declare::Constraints::Simple::Library::Array - Array Constraints
SYNOPSIS
# accept a list of pairs
my $pairs_validation = IsArrayRef( HasArraySize(2,2) );
DESCRIPTION
This module contains all constraints that can be applied to array references.
CONSTRAINTS
HasArraySize([$min, [$max]])
With $min
defaulting to 1. So a specification of
my $profile = HasArraySize;
checks for at least one value. To force an exact size of the array, specify the same values for both:
my $profile = HasArraySize(3, 3);
SEE ALSO
Declare::Constraints::Simple, Declare::Constraints::Simple::Library
AUTHOR
Robert 'phaylon' Sedlacek <phaylon@dunkelheit.at>
LICENSE AND COPYRIGHT
This module is free software, you can redistribute it and/or modify it under the same terms as perl itself.