in reply to Re: filtering data and while loop problem
in thread filtering data and while loop problem

DATA is the handle Perl uses to parse the file. seek DATA,0,0; seeks back to the #! line. You're seeking way too far back. You'd need to tell the starting position and seek to that position.