check the ***magic*** $., man perlvar
HANDLE->input_line_number(EXPR) $INPUT_LINE_NUMBER $NR $. Current line number for the ***last filehandle*** acces +sed.
Actually it's a bit more magic than you might like, in which case doing it yourself might be safer when using multiple input handles in a program.
In reply to Re: print a determinate line number
by jakobi
in thread print a determinate line number
by Paulux
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |