To everyone who might be able to help.
I have two arrays @site1 and @site2, each of which contain a number of elements called sites(e.g. $site1, $site2 etc.).
Each site contains a string of characters.(e.g $site1 = AAADD)
I want to compare each $site from @site1 to every $site is @site2 and get all combinations.
That is if $site1= 'AAA' and $site2 ='BBB', then I should get AB AB AB . After that what I find I need to add it to specific counters. That is counterAB=3.
Does anyone have any ideas on how to do that?
Thanks in advance for your help, much appreciated.