T
tgiles
Hi, all. This should be trivial but for some reason I'm terribly stuck.
I suppose that it's just not clicking in some fundamental way for me.
I am attempting to combine two arrays into a third array:
@one = qw(a-one a-two a-three a-four);
@two = qw(b-one b-two b-three b-four);
I'll save you my code mangling and just move to what my goal of the
output would be...
The output would return something on the order of:
a-one b-one
a-two b-two
a-three b-three
a-four b-four
there will always be a 1:1 correspondence between stuff on the left and
right, so there's no chance of an empty entry in the array. Going to
look into hashes now- perhaps that's what I needed all along.
nevertheless, your input would be appreciated. Thanks.
I suppose that it's just not clicking in some fundamental way for me.
I am attempting to combine two arrays into a third array:
@one = qw(a-one a-two a-three a-four);
@two = qw(b-one b-two b-three b-four);
I'll save you my code mangling and just move to what my goal of the
output would be...
The output would return something on the order of:
a-one b-one
a-two b-two
a-three b-three
a-four b-four
there will always be a 1:1 correspondence between stuff on the left and
right, so there's no chance of an empty entry in the array. Going to
look into hashes now- perhaps that's what I needed all along.
nevertheless, your input would be appreciated. Thanks.