in reply to Determining what line a filehandle is on

$.

See perlman:perlvar for more information. It gets tricky with <>.