in reply to (jcwren) Re: Copying under Windows?in thread Copying under Windows?
binmode($image_file) as well or you won't be able to read past any CTRL-Zs in the input file.