Ash Berlin > FormValidator-Simple-Plugin-Trim-1.00 > FormValidator::Simple::Plugin::Trim

Download:
FormValidator-Simple-Plugin-Trim-1.00.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 1.00   Source  

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.

syntax highlighting: