How can 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
13:43 UTC
Read the original article
Hit count: 248
perl
I have two arrays A & B. I want to do a compare among the elements of the two arrays.
@a = "abc,def,efg,ghy,klm,ghn"
@b = "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