in reply to Write a File in Binary?

editi,

Read How do I convert between numeric representations/bases/radixes? from perlfaq4 as well as perlpacktut.

Martin