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


in reply to how to read in a binary file and convert it to ascii output

Depends on what the binary file contains. If it is, for example, an image file then you're not likely to output it as text to display in a reasonable way. If it is an encoding of text in some binary format then some unencoding would be required, but without more details it's hard to say.
chas