Data::Verifier::Filters - Filters for values
$dv->verify({ name => { type => 'Str' filters => [ qw(collapse trim) ] } }); $dv->get_value('name');
Collapses all consecutive whitespace into a single space
Converts the value to lowercase.
Removes leading and trailing whitespace
Converts the value to uppercase.
Cory G Watson, <gphat at cpan.org>
<gphat at cpan.org>
Copyright 2009 Cold Hard Code, LLC
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.
To install Data::Verifier, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Data::Verifier
CPAN shell
perl -MCPAN -e shell install Data::Verifier
For more information on module installation, please visit the detailed CPAN module installation guide.