in reply to Re: matching arrays
in thread matching arrays

Thanks for the reply.

The @occurrences is actually a hash of arrray's.
push(@{$occurrences{$ID}}, "$term1"); push(@{$occurrences{$ID}}, "$term2");
Do you know of an easier way rather than running your code within a foreach loop?
foreach (keys (%occurrences)) { (@occurrences) = @{$occurrences{$_}}[ # Do the code you posted... } # end-foreach