I remember long discussions about the best implementation on Perl-community.de back in the days.
IIRC it wasn't perfect because line height could differ. (UPDATE wrapping comes also into play here)
See this example listing on Perl-Community - tinita be praised for her implementation. :)
In reply to Re^5: Change default style sheet: add line numbers
by LanX
in thread Change default style sheet: add line numbers
by roboticus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |