in reply to Updating one hash from another and pruning
But looking at the problem you describe, don't you want something like:
If not, then I don't understand what you want.%hash3 = %hash1; @hash3 {grep {exists $hash2 {$_}} keys %hash1} = @hash2 {grep {exists $hash2 {$_}} keys %hash2};
Abigail
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Updating one hash from another and pruning
by Anonymous Monk on Aug 15, 2002 at 02:21 UTC |