Why not count the words of the line just read, and then read in the next line?
As for your regex, you split on a space, a plus, a newline, a plus (again), a comma or a semi-colon. I think you want: /[\s,:]+/.
Abigail
In reply to Re: Out of memory
by Abigail-II
in thread Out of memory
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |