This simple script may help
#!/usr/bin/perl -w
use Tk ;
use strict;
my $top = MainWindow->new;
my @words = qw(foo fum far bim baz);
my $list = $top->ScrlListbox(-scrollbars => 'e', -width => 70) ;
$list->pack ;
my $label = $top->Label(-text => '');
$label->pack(-fill => 'both', -expand => 1);
$list->bind('<1>' => [sub {&showword($list, $label)} ] ) ;
grep ($list->insert('end',$_), @words) ;
MainLoop ;
sub showword{
my $w = shift ;
my $lab = shift;
my $word ;
$word = $w->get($w->curselection) ;
$lab->configure(-text => $word ) ;
}
This page is intentionally left justified.