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.

Get hands-on with 1400+ tech skills courses.