Special File Handling Variables

Learn about the special file handling variables in Perl.

$. or line counter

For every line read, Perl increments the value of the variable $., which serves as a line counter.

Access this course and 1400+ top-rated courses and projects.