in reply to Re^2: Reading specific lines in a file
in thread Reading specific lines in a file

as pointed by ambrus in the chat $. come in place because of flip flop operator
If either operand of scalar ".." is a constant expression, that operan +d is considered true if it is equal (== ) to the current input line n +umber (the $. variable).

HtH
L*
There are no rules, there are no thumbs..
Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.