use strict; use Tk; my $mw = MainWindow->new(); $mw->bind(''=>sub{print 'wheel moved';}); MainLoop;