timothy adigun wrote:
[snip]
my %new_hash = ();
foreach my $data1 ( keys %$hash1 ) {
while ( my ( $key, $value ) = each %$hash2 ) {
my ($new_value) = keys %$value;
$new_hash{$key} = $new_value if $data1 == $key;
}
}
No need for the nested llops:
my %new_hash;
for
Thank you very much.
That was the solution I was looking for.
Take care,
Chris
Hi Chris,
Please, check comments and codes below.
On Sun, Jul 8, 2012 at 6:19 AM, Chris Stinemetz wrote:
> Thank you very much for your responses.
>
> I have another question.
>
> I would like to replace the second element from hash1 with the second key
> from %hash2
>
> I believe what you