in reply to
Reading nth line from a file
Use "$." to keep a tab on you line number.
It's better than looping thru the whole file.
Else
you can use a counter which increments after each line.
Raghu
Comment on
Re: Reading nth line from a file
In Section
Seekers of Perl Wisdom