perldoc -q 'difference of two arrays', which will lead you to perlfaq4.
In reply to Re: Need advice on hashes and methods by Fletch in thread Need advice on hashes and methods by tom2112