Catmandu::Fix::trim(3pm) | User Contributed Perl Documentation | Catmandu::Fix::trim(3pm) |
NAME¶
Catmandu::Fix::trim - trim leading and ending junk from the value of a fieldSYNOPSIS¶
# 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::Fix2014-10-14 | perl v5.20.1 |