johngg has answered your "meta-question" (which seems to be "how do I stop processing a file when I find what I'm looking for"), but if you really want to move the file read pointer to the beginning or end of a file then you can use the seek function.
use Fcntl qw(:seek)# load symbolic constants seek FILEHANDLE, 0, SEEK_SET; # start of file seek FILEHANDLE, 0, SEEK_END; # end of file
"The first rule of Perl club is you do not talk about Perl club." -- Chip Salzenberg
In reply to Re: Skipping to file end
by davorg
in thread Skipping to file end
by uvnew
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |