Data::Schema::Type::Sortable - Role for sortable types
version 0.136
use Data::Schema;
This is the sortable role. It provides attributes like less_than (lt), greater_than (gt), etc. It is used by many types, for example 'str', all numeric types, etc.
Role consumer must provide method '_compare' which takes two values and returns -1, 0, or 1 a la Perl's standard cmp operator.
Aliases: ge
Require that the value is not less than some specified minimum.
Aliases: gt
Require that the value is not less or equal than some specified minimum.
Aliases: le
Require that the value is less or equal than some specified maximum.
Aliases: lt
Require that the value is less than some specified maximum.
A convenient attribut to combine min and max.
Steven Haryanto <stevenharyanto@gmail.com>
This software is copyright (c) 2009 by Steven Haryanto.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Data::Schema, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Data::Schema
CPAN shell
perl -MCPAN -e shell install Data::Schema
For more information on module installation, please visit the detailed CPAN module installation guide.