mscharrer has asked for the wisdom of the Perl Monks concerning the following question:
@myarray = qw(A B C D E);should produce:
Please note that the last line does not end in a comma. If the problem with the last trailing comma would not exits I simple could use FOREACH:.A(A), .B(B), .C(C), .D(D), .E(E)
Also I know about the possibility to use .join():[% FOREACH n in names %] .[% n %]([% n %]), [%- END %]
which does not allow me to use the names twice.[% names.join(",\n") %]
I tried some combinations and checked the manual but could not find a solution yet. Can someone with more experience with Template point me in the right direction?
Thanks
|
|---|