in reply to Re^2: grab 'n' lines from a file above and below a /match/
in thread grab 'n' lines from a file above and below a /match/
$. is just the number of the last line read from the last accessed filehandle. It's useful any time you want to know the line number. It does nothing beyond that; in particular, writing to it has no effect at all, other than that its value changes.
Makeshifts last the longest.
|
|---|