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


in reply to How to convert binary to hexadecimal

Before (maybe mis-)interpreting what a 'file with binary data' might be, I'd better ask... :)

Is it a binary file with fixed-size records?
Is it a text file containing strings like '100000111...11' ?
Are there any known limitations on how long the binary inputs and expected values can be ?

Those additional questions might guide to totally different solutions.