in reply to reading files in binary mode

This may be a spectacularly silly question, but why are you using Perl to copy a file? Usually, the O/S has facilities for this sort of thing.