use strict; use warnings; use Tk; my $mw = MainWindow -> new(); my $text = $mw -> Text() -> pack(); $mw -> bind("Tk::Text", "" => sub { print "funktioniert" } ); MainLoop;