Catmandu::Fix::trim
trim leading and ending junk from the value of a field
- Provided by: libcatmandu-perl (Version: 0.9505-1)
- Report a bug
trim leading and ending junk from the value of a field
# 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 => 'francais' ; trim(foo,diacritics) # foo => 'francais'
Catmandu::Fix