my @ids; for my $row_object (@$array) { push( @ids, $row_object->getId ); }