in reply to Byte-level file inspection?
I'll skip all of the minor changes I would make and just mention that you probably want to do binmode(F) before you read.