in reply to Re^2: Why Is Writing to a Binary File so Hard?in thread Why Is Writing to a Binary File so Hard?[SOLVED]
The code you posted doesn't use :raw on your $out filehandle