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


in reply to Unbelievably Obvious Debugging Tip

In my shell, I just drag my mouse over potential whitespace... if it highlights, then it is whitespace, otherwise not.

Also, if I'm examining output, I'll pipe it into vi - (rather than more or less), where, again, trailing whitespace is distinguishible in various ways.

It's personal style, I guess.

One last thing... if you've got two strings showing as different even though they look, by visual examination, the same... the very first thing you should be doing is a character-by-character diff (many different ways of accomplishing this) and/or looking at them in a hex dump. That's just common sense.

------------ :Wq Not an editor command: Wq