You are reading from the file in two locations:
while (<FILE>) { ... read(FILE, $buf, 1);
More likely you want while (! eof FILE) { instead of reading a line from FILE and then reading another byte from FILE.
In reply to Re: Missing bytes??
by Corion
in thread Missing bytes??
by stevee
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |