Per Tim's comment on r49782 (and fix for that rev): put the $n assignment out of...