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 line or automatically go the next line?)
>
> Hmmm... a homework problem?
>
> Keep a counter that keeps track of the line number you are reading and
> only do stuff to the data read from the line if the line number is
> divisible by 10.
No need to keep a count. Perl does that for you - it's called $.
Dave...
--
Don't dream it... be it