my %count; $count{$_}++ foreach (@ServicesOnMachine, @ServiceCheckList); my @intersection = grep{$count{$_} >=2} keys %count; print "@intersection\n"; #prints: sendmail httpd ypbind
In reply to Re: Comparing two arrays...
by Marshall
in thread Comparing two arrays...
by austin43
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |