Ah, so here is another reason to turn off that warning... different perls complain about different things. The original answers were from a unix 5.6.1 perl, but testing it against 5.005_03 on the same machine shows that $i and $k trip warnings as you noted. (of course turning off warnings prior to 5.6.0 is a bit of a pain....)