http://qs321.pair.com?node_id=564078

tamaguchi has asked for the wisdom of the Perl Monks concerning the following question:

I have written the following:
#!/usr/bin/perl -w use strict; use Tk; my @arr=(100, 200, 300, 400 , 500); my $maincolor='red'; my $mw = MainWindow->new; $mw->minsize(qw(250 200)); #x y $mw->configure(-title=>'PROGRAM', -background=>$maincolor); my $frame_6=$mw->Frame(-borderwidth => 3, -background => $maincolor)-> +pack( -side=>'top', -fill=>'x'); $frame_6->Label(-text => 'Scroll', -background=>'yellow',)->pack(-side + =>'left'); my $scroll=$mw->Scrolled("Text", -scrollbars => 'e', -font => 'normal' +, -width => 10, -height => 10,)->pack; MainLoop;
I wonder now: How is it possible to make the values from array @arr automaticaly appear in the scrollwindow when the program is run? I would be thankfull for any help.