Study perldoc -q intersection, and come back if you have some code to show.
Abigail
In reply to Re: Fun with arrays by Abigail-II in thread Fun with arrays by blackhawk down