my $f = $mw->Frame->pack(-side => 'top', -fill => 'x'); my $t = $mw->Scrolled("Text",-font=>"{arial} 12 {bold}")->pack(-side => 'bottom', -fill => 'both', -expand => 1); #### $f->Button(-text => "Display", -command =>\&tged)->pack(-side => 'right'); sub tged { @chars=$t->get('sel.first','sel.last'); #print "\nSelected word:"; #print @chars; } 1; #### my $t = $mw->Scrolled("Text",-font=>"{arial} 12 {bold}")->pack(-side => 'bottom', -fill => 'both', -expand => 1); sub replace1{ . . $t->insert('sel.first',"$chosen1"); . . } 1; sub replace2{ . . $t->insert('sel.first',"$chosen2"); . . } 1; sub replace3{ . . $t->insert('sel.first',"$chosen3"); . . } 1; sub addit{ . . @addword=$t->get('sel.first','sel.last'); . . } 1;