You're not closing the file from your first step and hence some (or rather, all) lines remain in memory, buffered by Perl or the OS. close the first file or use a lexical filehandle (or both), and you will see the data when you reopen the file.
In reply to Re: Opening a File Twice
by Corion
in thread Opening a File Twice
by Jamin
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |