|Sep||This is the value that is used to separate fields when the array is joined into a string. It should be a value which doesnt appear in your data. Default is ^G.|
|WhiteSpace||Flag that indicates whether or not whitespace is significant in the comparison. If this value is false then all multiple whitespace characters are changed into a single space before the comparison takes place. Default is 1 (whitespace is significant).|
|Case||Flag that indicates whther or not the case of the data should be significant in the comparison. Default is 1 (case is significant).|
|Skip||a reference to a hash which contains the numbers of any columns that should be skipped in the comparison. Default is an empty hash (all columns are significant).|
|DefFull||Flag which indicates whether the default comparison is simple (just returns true if the arrays are the same or false if theyre not) or full (returns an array containing the indexes of the columns that differ). Default is 0 (simple comparison).|
Very simple comparison. Just checks the lengths of the arrays are the same.
Compare the values in two arrays and return a data indicating whether the arrays are the same. The exact return values differ depending on the comparison method used. See the descriptions of simple_compare and full_compare for details.
Uses the value of DefFull to determine which comparison routine to use.
Compare the values in two arrays and return a flag indicating whether or not the arrays are the same.
Uses the values of Sep, WhiteSpace and Skip to influence the comparison.
Do a full comparison between two arrays.
Checks each individual column. In scalar context returns the number of columns that differ (zero if the arrays are the same). In list context returns an list containing the indexes of the columns that differ (an empty list if the arrays are the same).
Uses the values of Sep and WhiteSpace to influence the comparison.
<B>Note:B> If the two arrays are of different lengths then this method just returns the indexes of the elements that appear in one array but not the other (i.e. the indexes from the longer array that are beyond the end of the shorter array). This might be a little counter-intuitive.
Check to see if one array is a permutation of the other (i.e. contains the same set of elements, but in a different order).
We do this by sorting the arrays and passing references to the assorted versions to simple_compare. There are also some small changes to simple_compare as it should ignore the Skip hash if we are called from perm.
Dave Cross <email@example.com>
Copyright (C) 2000-2005, Magnum Solutions Ltd. All Rights Reserved.
This script is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
|perl v5.20.3||ARRAY::COMPARE (3)||2016-04-03|