The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

FormValidator::Simple::Plugin::Trim - Trim fields for FormValidator::Simple

SYNOPSIS

 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

DESCRIPTION

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.

VALIDATION COMMANDS

TRIM

Trim leading and trailing white space

TRIM_LEAD

Trim leading white space

TRIM_TRAIL

Trim trailing white space

TRIM_COLLAPSE

Trim leading and trailing white space, and collapse all whitespace characters into a single space.

AUTHOR

Ash Berlin <ash@cpan.org>

LICENSE

Free software. You can redistribute it and/or modify it under the same terms as perl itself.