[% FOREACH option = element.value %] [%- option -%] [% END %] # this is equivalent to writing those three directives on a single line: # [% FOREACH option = element.value %][% option %][% END %] #### my $template = Template->new( { PRE_CHOMP => 1, POST_CHOMP => 1, } );