use strict; use warnings; use Tk; my $mw = MainWindow->new(); my $long_text = <Label( -text => $long_text, -wraplength => 250, )->pack( -fill => 'both', -expand => 1, ); MainLoop;