in reply to Re: Multiple references pointing to the same memory location
in thread Multiple references pointing to the same memory location
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:
push(@entries, [ @$columns_ref ]);
--bwana147
|
|---|