Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: push values to an element of an array and read the sameby Athanasius (Archbishop) |
on Sep 28, 2017 at 07:32 UTC ( [id://1200247]=note: print w/replies, xml ) | Need Help?? |
push @colvalues1, $allcols[0],':',$allcols[1],"\n"; This pushes 4 separate values onto the array. If @colvalues1 was empty before the operation, the push populates it like this:
Perhaps you intended to concatenate these 4 fields into a single string?
That is, replace the commas (which produce a list) with dots (which concatenate). Hope that helps,
In Section
Seekers of Perl Wisdom
|
|