Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^4: List comparison problem

by Laurent_R (Canon)
on Aug 16, 2019 at 21:14 UTC ( #11104584=note: print w/replies, xml ) Need Help??


in reply to Re^3: List comparison problem
in thread List comparison problem

Yes, you're absolutely right, they are not entirely equivalent. ++

But the aim of the OP code is really obviously to remove Windows CR characters from Windows line endings. And for that, that's OK.

Having said that, I completely agree that I have also seen quite a few times poorly-formed, non-compliant, randomly-encoded data originating from Windows.

I should also say that if my input was similar to your $have variable, I would probably have to think twice before I decided to remove CR characters within the string. It would really depend on that the final aim of the file comparison is.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (5)
As of 2020-09-20 12:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If at first I donít succeed, I Ö










    Results (121 votes). Check out past polls.

    Notices?