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


in reply to Re: remove bad characters
in thread remove bad characters

Just a note: Using binmode may be important for the sake of portability. Because if you're using only Unix, it is a no-op.