binmode IMAGE; ... open IMAGE, $file_name or die "ERROR $!"; #### open IMAGE, $file_name or die "ERROR $!"; binmode IMAGE;