Form::Factory::Feature::Control::Trim - Trims whitespace from a control value


Form-Factory documentation  | view source Contained in the Form-Factory distribution.

Index


NAME

Top

Form::Factory::Feature::Control::Trim - Trims whitespace from a control value

VERSION

Top

version 0.020

SYNOPSIS

Top

  has_control title => (
      control => 'text',
      features => {
          trim => 1,
      },
  );

DESCRIPTION

Top

Strips whitespace from the front and back of the given values.

METHODS

Top

check_control

Reports an error unless the control is a scalar value.

clean

Strips whitespace from the start and end of the control value.

AUTHOR

Top

Andrew Sterling Hanenkamp <hanenkamp@cpan.org>

COPYRIGHT AND LICENSE

Top


Form-Factory documentation  | view source Contained in the Form-Factory distribution.