Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Format and Join an Array in a Template

by si_lence (Deacon)
on Jun 19, 2009 at 16:19 UTC ( #773073=note: print w/ replies, xml ) Need Help??


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


Comment on Re: Format and Join an Array in a Template
Download Code
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!

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://773073]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (12)
As of 2015-08-04 16:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The oldest computer book still on my shelves (or on my digital media) is ...













    Results (68 votes), past polls