Re: reading the next line from a file

2001-06-13 Thread Dave Cross
On Wed, Jun 13, 2001 at 02:45:40PM -0400, Brett W. McCoy ([EMAIL PROTECTED]) wrote: > On Wed, 13 Jun 2001, Esrar Chowdhury wrote: > > > my question is...how do I make the read pointer read every 10th line > > from my input file? (After reading one line, does the read pointer stay > > on the same

Re: reading the next line from a file

2001-06-13 Thread Brett W. McCoy
On Wed, 13 Jun 2001, Esrar Chowdhury wrote: > my question is...how do I make the read pointer read every 10th line > from my input file? (After reading one line, does the read pointer stay > on the same line or automatically go the next line?) Hmmm... a homework problem? Keep a counter that kee

Re: reading the next line from a file

2001-06-13 Thread Dave Cross
On Wed, Jun 13, 2001 at 01:30:07PM -0700, Esrar Chowdhury ([EMAIL PROTECTED]) wrote: > Hi! > > I just started using perl and have a question. Let say I have an inputfile > with 100 lines. Each of these lines contain a name...first name and > last name. > > I need to be able to read the 1st name.

reading the next line from a file

2001-06-13 Thread Esrar Chowdhury
Hi! I just started using perl and have a question. Let say I have an inputfile with 100 lines. Each of these lines contain a name...first name and last name. I need to be able to read the 1st name..the 10th name...20th name..so on i.e. every 10th name from the input file. I do : $name = ; #fo