How to compare arrays in Perl?
Posted
by devtech
on Stack Overflow
See other posts from Stack Overflow
or by devtech
Published on 2010-04-07T10:51:26Z
Indexed on
2010/04/07
14:13 UTC
Read the original article
Hit count: 303
perl
I have two arrays A & B. I want to do a compare among the elements of the two arrays.
my @a = qw"abc def efg ghy klm ghn";
my @b = qw"def ghy jgk lom com klm";
If any element matches then set a flag. Is there any simple way to do this? Please advise.
© Stack Overflow or respective owner