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' ], } );

Add:
foreach $element (@add) { foreach ( @{$element->{'value'}} ) { chomp; } }


Update:
I think first node is more on target, I never use TT =[


Evan Carroll
www.EvanCarroll.com
  • Comment on Re: how to chomp or trim extra characters like \n ,white spaces in text area using template toolkit
  • Select or Download Code