[Milan-pm] comparing 2 lists

Paola Bisignano paola.bisignano at gmail.com
Tue Oct 6 03:32:08 PDT 2009


Hi,
I have two lists of numbers, saved in two files and I want to compare
them, in order to check which are the same elements in both lists. I
put them into array, so I want to compare array, but I only want to
check the value, and It doesn't matter for the position in the array,
I tried to use Array::Compare



open (OUT, "> $file");
					my $comp = Array::Compare-> new;
					if ($comp->compare(\@array_num1, \@array_num2))
						{
						print "$comp\n";
						print OUT "$comp\n";
						}
					close OUT;

but it returns blank, I don't know why...


More information about the Milan-pm mailing list