How can compare arrays in Perl?
- by devtech
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.