Hi Agnello, On 7 June 2011 07:47, Agnello George <agnello.dso...@gmail.com> wrote: > I got the following hashref <snip> > now i need to push $select_all_website into $selet_domU_data
I think this is what you want... use strict; use warnings; my $hash_ref_1 = { a => 1, b => 2, }; my $hash_ref_2 = { a => 3, c => 4, }; my $new_hash_ref = { %{$hash_ref_1}, %{$hash_ref_2} }; use Data::Dumper; print Dumper($new_hash_ref); Which produces: $VAR1 = { 'c' => 4, 'a' => 3, 'b' => 2 }; -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/