Hi,
I am usually directly using references to anonymous hashes, like this:
And at the end I simply do return $row_data this is working fine for me.while ( my $row = $data_handle->fetchrow_hashref ){ my $row_data = {}; # get a fresh hash for the row data # fill in this row $row_data->{names} = $row->{'names'} || '';
In reply to Re: Returning hash reference from a sub
by tobias_hofer
in thread Returning hash reference from a sub
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |