Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Array to String

by Corion (Patriarch)
on Jan 26, 2009 at 14:44 UTC ( [id://738948]=note: print w/replies, xml ) Need Help??


in reply to Array to String

See join for joining array elements into a string.

See map for converting array elements into other.

Basically, your conversion will look like this:

my @array = qw(balack white green red); my @tagged_array = map { ... } @array; my $result = join ... @tagged_array; print $result;

Of course, I've left out the interesting parts, but as you don't show the code you've written, I can't help you more.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (4)
As of 2024-03-28 21:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found