I have two arrays of strings that I would like to compare for equality:
my @array1 = (\"part1\", \"part2\", \"part3\", \"part4\"); my @array2 = (\"part1\", \
If casing is the only difference, you can simply use:
if (lc "@array1" eq lc "@array2") {...}
Whereas "@array1" returns the same as join ( " ", @array1 )
"@array1"
join ( " ", @array1 )