in reply to print a determinate line number
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: print a determinate line number
by almut (Canon) on Oct 06, 2009 at 10:58 UTC | |
by jakobi (Pilgrim) on Oct 06, 2009 at 11:56 UTC |