Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^5: how to ignore spaces, commad or new line of an array when comparing

by dbuckhal (Hermit)
on Jun 16, 2021 at 14:36 UTC ( #11133922=note: print w/replies, xml ) Need Help??


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

  • Comment on Re^5: how to ignore spaces, commad or new line of an array when comparing

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11133922]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (1)
As of 2021-09-27 03:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?