FormValidator::Simple::Plugin::Trim - Trim fields for FormValidator::Simple
use FormValidator::Simple qw/Trim/; my $query = CGI->new $query->param('int_param', "123 "); my $result = FormValidator::Simple->check( $query => [ int_param => [ 'TRIM', 'INT' ] ] ); $result->valid('int_param') == 123
A group of validators for use with FormValidator::Simple that will trim white space in differnet ways. Will always validate any data passed through them as valid.
Trim leading and trailing white space
Trim leading white space
Trim trailing white space
Trim leading and trailing white space, and collapse all whitespace characters into a single space.
Free software. You can redistribute it and/or modify it under the same terms as perl itself.