in reply to Hashref for specific values
my @logged_events;
while (my $record = $sth_le->fetchrow_hashref())
{
push @logged_events, $record;
}
seems cleaner to me. If you want specific things from the hash ref, then you can do, e.g.:
while (my $record = $sth_le->fetchrow_hashref())
{
push @logged_events, $record->{SOME_KEY};
}
|
|---|