Aye. I prefer the way I did it because it uses $i+1 in both places.
duff
In reply to Re^3: Array mysteriously growing by duff in thread Array mysteriously growing by AntsPants