in reply to Perl adding non printable characters in the return value

You are not showing the whole code. The question cannot be answered in a decent fashion if we cannot reproduce the problem.

By the way, comments start with # in Perl, not //.

  • Comment on Re: Perl adding non printable characters in the return value