in reply to Create a Binary file using perl

What do you mean?

Also see pack unpack, binmode and open.