#access my $kolsref = $kol_q->get_all_KOLS; print $kolsref->{1}; # or if you really want to copy the hash my %kols = %{ $kol_q->get_all_KOLS() };