The output from full_compare() in a list context is a list of indices of elements that differ. To retrieve that actual values, use the returned list to index into the original arrays.
print "line $_ differs. File 1: $file1[ $_ ] != File 2: $file2[ $_ ]\n +" for $comp->full_compare(\@file1,\@file2);
In reply to Re: Array::Compare issues
by BrowserUk
in thread Array::Compare issues
by sunadmn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |