for my $hash1 (@{$data1}){ for my $hash2 (@{$data2}){ for my $key (keys %$hash2){ $hash1->{$key}=$hash2->{$key}; } } } print Dumper $data1;
In reply to Re: Insert into element into arrays ref
by aartist
in thread Insert into element into arrays ref
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |