http://www.perlmonks.org?node_id=11133922


in reply to Re^4: how to ignore spaces, commad or new line of an array when comparing
in thread how to ignore spaces, commas or new line of an array when comparing

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:

  1. chomp and slurp
  2. filter out special characters
  3. split and push

just a quick thought... hope it helps.

Info: Perl Maven Slurp Mode