in reply to comparison of two arrays
Perhaps you should search CPAN using words like 'compare' and 'array'. You never know what might come up.
"The first rule of Perl club is you do not talk about Perl club." -- Chip Salzenberg