in reply to regex/perl question about uninitialized value
Perhaps you are confusing .* and $.?
$. is a read-only variable
$. is definitely NOT read-only.