How can I 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
17:33 UTC
Read the original article
Hit count: 258
I have two arrays, @a
and @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?
© Stack Overflow or respective owner