I am using full_compare so that each and every element of the first array will be matched with the corresponding element of the second arra
That's not the difference between compare() and full_compare(). According to the docs
(the full comparison function) returns a list containing the indexes of elements which differ between the two arrays. If the arrays are the same it returns an empty list. In scalar context the full comparison returns the length of this list (i.e. the number of elements that dif- fer).
Since the arrays are identical, the length of the list of differences is zero, which is what gets returned in a scalar context.
In reply to Re: Array::Compare
by adrianh
in thread Using Array::Compare
by rsriram
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |