Yes you would. When you assign a read from a filehandle in a scalar context the file pointer will be incremented to the next line according to the $/ variable e.g
while(<FH>) {
my $nextline = <FH>;
}
What happens here is that the first line of <FH> is assigned to $_ and the filehandle will point to the second line. When $nextline is assigned the read from <FH> it gets the second line, and the filehandle will then point to the 3rd line, and so on and so forth.
HTH
_________ broquaint | [reply] [d/l] [select] |