Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re: Comparison Of Filesby wardk (Deacon) |
on Dec 05, 2000 at 21:25 UTC ( [id://45028]=note: print w/replies, xml ) | Need Help?? |
Perl Cookbook Chapter 4.7 "Finding Elements in one array but not the other" is a solution that may help from the cookbook... "Build a hash of the keys of @B and use as a lookup table, then check each element in @A to see if it is @B." compare site1 to site2 then site2 to site1 to get both sets of missing sites.
In Section
Seekers of Perl Wisdom
|
|