in reply to how to chomp or trim extra characters like \n ,white spaces in text area using template toolkit
my @add=( { name=>"Submode", value=>[ 'Ford Prefect', 'Slartibartfast' ], } );
foreach $element (@add) { foreach ( @{$element->{'value'}} ) { chomp; } }
|
|---|