good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: Re: Multiple references pointing to the same memory locationby bwana147 (Pilgrim) |
on Jul 31, 2001 at 13:10 UTC ( [id://101103]=note: print w/replies, xml ) | Need Help?? |
Be careful here: the OP wanted a list of array refs, each one containing a row of data. If you push(@entries, @$columns_ref), you'll end-up with @entries being a flat list of all the columns, without any way of knowing where each row starts or ends. You really must create a new array, copy the values from the array referenced by $column_ref and push a reference to the new array. This can be done easily, as has already been pointed out:
--bwana147
In Section
Seekers of Perl Wisdom
|
|