$Line

$Line

is a global variable that specifies the number of the current input line.

Details

Examples

Basic Examples  (1)

The value of $Line corresponds to the numbers in In and Out:

It is incremented for every line of input:

You can reset it:

Introduced in 1988
 (1.0)