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 = <INFILE>; #for the 1st line 

# have already opened my input file by

unless (open(INFILE, "test_input.txt")) {
die ("Input file test_input.txt cannot be opened.\n");
}

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?)


Thanks in advance.

--
Esrar


Esrar Chowdhury
CCS Internet
13740 Research Blvd Suite #O-4
Austin, TX 78750
Phone: 512-257-2274

Reply via email to