use Tk; my $mw = tkinit; $mw->Entry()->pack->bind('',sub{print"entered\n"}) for (0..5); MainLoop;