Nicolas Steenlant > Catmandu > Catmandu::Fix::trim

Download:
Catmandu-1.0301.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Module Version: 1.0301   Source  

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';

   # trim accents
   # e.g. foo => 'français' ;
   trim(foo,diacritics) # foo => 'francais'

SEE ALSO ^

Catmandu::Fix

syntax highlighting: