Nicolas Steenlant > Catmandu-0.5004 > Catmandu::Fix::trim

Download:
Catmandu-0.5004.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Source   Latest Release: Catmandu-0.9209

NAME ^

Catmandu::Fix::trim - trim leading and ending junk from the value of a field

SYNOPSIS ^

   # the default mode trims whitespace
   # e.g. foo => '   abc   ';
   trim('foo'); # foo => 'abc';
   trim('foo', 'whitespace'); # foo => 'abc';
   # trim non-word characters
   # e.g. foo => '   abc  / : .';
   trim('foo', 'nonword'); # foo => 'abc';

SEE ALSO ^

Catmandu::Fix

syntax highlighting: