in reply to Re: substitutions on a single line
in thread substitutions on a single line

$. is 1-based. Before reading, it is undef. After reading a line, it is 1. Unless you assign to it, it is never actually 0, and although undef == 0, that's not what you want to write here.

--
[ e d @ h a l l e y . c c ]