NAME

Data::Verifier::Filters - Filters for values

SYNOPSIS

$dv->verify({
    name => {
        type    => 'Str'
        filters => [ qw(collapse trim) ]
    }
});
$dv->get_value('name');

FILTERS

collapse

Collapses all consecutive whitespace into a single space

lower

Converts the value to lowercase.

trim

Removes leading and trailing whitespace

upper

Converts the value to uppercase.

AUTHOR

Cory G Watson, <gphat at cpan.org>

COPYRIGHT & LICENSE

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.