Catmandu::Fix::trim - 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';
Catmandu::Fix
To install Catmandu, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Catmandu
CPAN shell
perl -MCPAN -e shell install Catmandu
For more information on module installation, please visit the detailed CPAN module installation guide.