Do you really need to read the TSV file twice in order to process your data? For large TSV files it might be faster to read the file only once line-by-line and perform the two operations - currently distributed over two different while-loops - within the same loop.
On the other hand, if processing time doesn't matter and code keeps cleaner, seek might be the better option.
In reply to Re: Having Access to a file two times
by Perlbotics
in thread Having Access to a file two times
by sesemin
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |