in reply to Array::Compare issues
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);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Array::Compare issues
by sunadmn (Curate) on Oct 03, 2003 at 20:05 UTC | |
|
Re: Re: Array::Compare issues
by sunadmn (Curate) on Oct 03, 2003 at 20:09 UTC | |
by BrowserUk (Patriarch) on Oct 03, 2003 at 20:28 UTC | |
by sunadmn (Curate) on Oct 06, 2003 at 14:10 UTC |