Advertisement

05.30.2007 at 03:03PM PDT, ID: 22603342
[x]
Attachment Details

Perl Concatenate 2 arrays. Combining array1 element 1 and array 2 element 1 into a single string.

Asked by TristinColby in Perl Programming Language

Tags: perl, concatenate, array

I'm trying to concatenate 2 arrays. The catch is that I'm trying to concatenate the elements. like the following

my @array = qw/one two three four/;
my @array2 = qw/a b c d/;

I want the result to be stored in a new array.
the result should be like:
one:a, two:b, three:c, four:d
Start Free Trial
[+][-]05.30.2007 at 03:06PM PDT, ID: 19183874

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Perl Programming Language
Tags: perl, concatenate, array
Sign Up Now!
Solution Provided By: ozo
Participating Experts: 1
Solution Grade: A
 
 
[+][-]05.30.2007 at 03:33PM PDT, ID: 19184067

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.30.2007 at 03:56PM PDT, ID: 19184214

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.30.2007 at 04:04PM PDT, ID: 19184267

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.30.2007 at 04:31PM PDT, ID: 19184432

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32