Guest_imported
New member
- Jan 1, 1970
- 0
Hi,
I'm comparing two arrays like:
#put them on one row
$object1=join("",@object1);
$object2=join("",@object2);
#remove all spaces, tabs, newlines etc
$object1 =~ s/\s+//g;
$object2 =~ s/\s+//g;
#compare them
if($object1 ne $object2)
{
print "This differs ???\n";
}
This compares them but I also want to know what's not equal.
How can I find out which parts that don't match?
brgds
Andreas
I'm comparing two arrays like:
#put them on one row
$object1=join("",@object1);
$object2=join("",@object2);
#remove all spaces, tabs, newlines etc
$object1 =~ s/\s+//g;
$object2 =~ s/\s+//g;
#compare them
if($object1 ne $object2)
{
print "This differs ???\n";
}
This compares them but I also want to know what's not equal.
How can I find out which parts that don't match?
brgds
Andreas