in reply to Finding duplicate keys
my @dups = do { my %count; grep ++$count{$_} == 2, @keys_from_one, @keys_from_two; };
-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: •Re: Finding duplicate keys
by pg (Canon) on Apr 04, 2003 at 18:44 UTC |