It's probably unrelated to the error, but you should binmode the output file as well if you binmode the input file.
Also, for simple splitting of a file to chunks, it might be easier to use the split program from coreutils.
In reply to Re: File splitting script
by ambrus
in thread File splitting script
by Alien
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |