in reply to Perl/Tk - Dynamic Checkbuttons?

Its kind of hard to infer what you are asking exactly, but could the problem be that you are re-initializing $i every time you loop through the @ECs? $i is always "1".