Nevermind I solved it with a compromise :)
$data->{$cols->{ID}} = \%{$cols};
}
Then I can access the different values with $data->{$cols->{ID}}->{Column};
Thanks anyway.
Code:
while (my ($cols) = $sth->fetchrow_hashref) { $data->{$cols->{ID}} = \%{$cols};
}
Then I can access the different values with $data->{$cols->{ID}}->{Column};
Thanks anyway.