Both of those examples die, giving the 'Invalid input file...' message part way through reading an input file.
An output file is written, but only up to the point where reading died.
Happens both with a very large *.txt file, and also a medium sized *.jpg file. Nothing looks untoward at that point for the *.txt input file. The output file ends in the middle of a text line.
In reply to Re^3: binmode copy loses final byte
by aplonis
in thread binmode copy loses final byte
by aplonis
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |