in reply to Dereferencing hashrefs
To dereference it I do:sub db_get { .. .. # fetch the rows into an array reference while ( $retstat = $sth->fetchrow_hashref ) { push @retval, [$retstat]; } .. .. return @retval }
As I said, its messy, but it works for me.my $value = $ary[0][0]->{<key>} # to Shorten it (so it's not so hard to type) my %short = %{$ary[0][0]};
|
|---|