http://www.perlmonks.org?node_id=773073


in reply to Format and Join an Array in a Template

One way of doing it:
my @out = join (",\n", (map {".$_($_)"} (@myarray)));
cheers

si_lence

Replies are listed 'Best First'.
Re^2: Format and Join an Array in a Template
by mscharrer (Hermit) on Jun 19, 2009 at 16:25 UTC
    Thanks, but I know the Perl code to do it. I was looking for the Template code which I can use inside a template file.

      oops, misread your question. sorry!