Arrays::Same - Test if two arrays are identical
use Arrays::Same -all; if (arrays_same_i(\@a, \@b)) { ...; }
This module exports two XS functions which test whether a pair of arrays are identical. To be considered identical, the arrays must be of equal length, and contain the same elements in the same order:
The arrays_same_i function compares the elements as integers.
arrays_same_i
The arrays_same_s function compares the elements as strings, and is case-sensitive.
arrays_same_s
Both functions make the assumption that the arrays are simple lists of non-reference scalars. They do not support overloading, etc, but dualvars should work.
Please report any bugs to http://rt.cpan.org/Dist/Display.html?Queue=Arrays-Same.
Toby Inkster <tobyink@cpan.org>.
This software is copyright (c) 2019 by Toby Inkster.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
To install Arrays::Same, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Arrays::Same
CPAN shell
perl -MCPAN -e shell install Arrays::Same
For more information on module installation, please visit the detailed CPAN module installation guide.