$. 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.
In reply to Re^3: grab 'n' lines from a file above and below a /match/
by Aristotle
in thread grab 'n' lines from a file above and below a /match/
by barathbr
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |