You need to ddumperBasic debugging checklist the data you're using, it probably doesn't have newlines
#!/usr/bin/perl -- use strict; use warnings; use Tk; my $mw = tkinit(); my $l = $mw->Label->pack( -side => 'bottom' ); $mw->Button( -command => [ \&ralala, $l ], )->pack; MainLoop(); sub ralala { my( $l ) = @_; $l->configure( -text => join "\n", 1 .. rand 4 ); }
In reply to Re: Multiple Rows in Tk::Label
by Anonymous Monk
in thread Multiple Rows
by PilotinControl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |