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.
In reply to •Re: Finding duplicate keys
by merlyn
in thread Finding duplicate keys
by Wally Hartshorn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |