in reply to extra spaces between the characters in string

What's wrong with the answers in Perl Regex with Extra Spaces?

And what code are you running that produces the wrong output?

It could also be that the program's output is encoded in UTF-16, and the "spaces" you see are actually null-bytes. In this case Encode::decode can help. See also: Character encodings and Unicode in Perl.

  • Comment on Re: extra spaces between the characters in string