In Perl, is there a built in way to compare two arrays for equality?
There is the new smart match operator: #!/usr/bin/perl use 5.010; use strict; use warnings; my @x = (1, 2, 3); my @y = qw(1 2 3); say “[@x] and [@y] match” if @x ~~ @y; Regarding Array::Compare: Internally the comparator compares the two arrays by using join to turn both arrays into strings and comparing … Read more