I have two arrays of strings that I would like to compare for equality:
my @array1 = (\"part1\", \"part2\", \"part3\", \"part4\"); my @array2 = (\"part1\", \
Perl 5.10 gives you the smart match operator.
use 5.010; if( @array1 ~~ @array2 ) { say "The arrays are the same"; }
Otherwise, as you said, you'll have top roll your own.