in reply to Re: Duplicate rows with Class::DBI
in thread Duplicate rows with Class::DBI

Presuming that you want to push all the keys onto the array:

push @loop_data, \%$_ for (@info);

Replies are listed 'Best First'.
Re^3: Duplicate rows with Class::DBI
by friedo (Prior) on Apr 26, 2005 at 02:53 UTC
    Why the \%$_? There's no need to copy $_'s referant, simply doing push @loop_data, $_ for @info would suffice. Of course, that's exactly the same as @loop_data = @info, so the whole thing is moot anyway. :)