Array comparison
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
11:23 UTC
Read the original article
Hit count: 333
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 0 else 1. Is there any simple way to do this? Please advise.
© Stack Overflow or respective owner