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.
Ash Berlin <ash@cpan.org>
<ash@cpan.org>
Free software. You can redistribute it and/or modify it under the same terms as perl itself.
To install FormValidator::Simple::Plugin::Trim, copy and paste the appropriate command in to your terminal.
cpanm
cpanm FormValidator::Simple::Plugin::Trim
CPAN shell
perl -MCPAN -e shell install FormValidator::Simple::Plugin::Trim
For more information on module installation, please visit the detailed CPAN module installation guide.