$hashref->{personal} = $arrayref; # Results in: { name => "Harsha", designation => "Manager", personal => ["Country", "location", "language"], } #### @{$hashref}{@$arrayref} = (); # Results in: { name => "Harsha", designation => "Manager", Country => undef, location => undef, language => undef, }