Why you're using that sub in the first place ? what you're trying to do it not clear (for me).
You can test multiple conditions against the current line instantly then loop & get the next line.
but instead I see that you're SEEKING to the beginning of the file each time you want to check for something which is not efficient
In reply to Re^2: Efficiently processing a file
by ahmad
in thread Efficiently processing a file
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |