We don't bite newbies here... much | |
PerlMonks |
Re^2: Format and Join an Array in a Templateby mscharrer (Hermit) |
on Jun 19, 2009 at 17:09 UTC ( [id://773091]=note: print w/replies, xml ) | Need Help?? |
Thanks, this works (with .slice(0,-2)). I was simply thinking the wrong way. The fact that the format must be used twice is a little drawback, but I think it does not get much shorter. It is a pity that the Template module does not provide a 'map' virtual method, otherwise a 'list.map(...).join(...)' would be possible.
In Section
Seekers of Perl Wisdom
|
|