in reply to Comaring contents of 2 Hash of Arrays
Tuna, I think this does what you want.
If an element exists in %HoL_compare_pub, but not inside %HoL_pub, then push it into the array-ref $no_matches{$key}:
my %no_matches; foreach my $key (keys %HoL_compare_pub) { push @{$no_matches{$key}}, $HoL_compare_pub{$key} unless exists $HoL_pub{$key}; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: (dkubb) Re: (2) Comparing contents of 2 Hash of Arrays
by sierrathedog04 (Hermit) on Feb 20, 2001 at 17:56 UTC |