The code doesn't make it clear to me at all that reading in fixed length buffers is the right approach. Why not read in one line at a time, which you then split using /[|]/ as regex?
Abigail
In reply to Re: split and sysread()
by Abigail-II
in thread split and sysread()
by relaxed137
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |