eval "\$answer$count=0;"; eval "\$textframe$fcount->Checkbutton(...);"; #### $answer[$count] = 0; $textframe[$fcount]->Checkbutton(...); #### perl -MO=Deparse your_script.pl