$share_hash{$fields[$colhash{res_stay_id}]} = [@fields];This fills the %share_hash hash.
This tries to work with $share_hash scalar variable (which is different from %share_hash) as a hash reference and should probably trow some errors/warnings.foreach my $share_item (keys %$share_hash) { my $row = $share_hash->{$share_item};
In reply to Re: hashes hash refs and arrays
by aitap
in thread hashes hash refs and arrays
by brcjacks
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |