in reply to How does $. work in one liner?

Welcome elevenfly to the Monastery!

This is a great question. After a quick glance in perlrun, it doesn't state anything about the special line-number variable ($.).