Hello all,
I need some code to find the difference between two arrays and put the diff in another array. I did a search on this forum and found some code from raklet and modified it. Here is my code. The output shows that @clockonly exists, but there seems to be nothing in it:
Any help is appriciated (as always)
Nick
I need some code to find the difference between two arrays and put the diff in another array. I did a search on this forum and found some code from raklet and modified it. Here is my code. The output shows that @clockonly exists, but there seems to be nothing in it:
Code:
my %seen = ();
my @clockonly = ():
foreach $item (@probtckt, @clktckt) {seen{$item}++;}
foreach $element (keys %seen) {
if ($seen{$item} < 1) {
push (@clockonly, $seen{$item});
}
Any help is appriciated (as always)
Nick