I am not familiar with Array::Compare, and all of its options, but how about utilizing a "chomp and slurp mode" combination to flatten the file contents? Then the rest of the array prep might look like this:
just a quick thought... hope it helps.
Info: Perl Maven Slurp Mode
In reply to Re^5: how to ignore spaces, commad or new line of an array when comparing
by dbuckhal
in thread how to ignore spaces, commas or new line of an array when comparing
by noviceuser
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |