Good Evening Monks!
The question based on the code below why does each item appear as a separate drop down list instead of ALL in one drop down list? Thanks in advance!
open(FILE, "DATA/carownerdata.txt");
my @lines=<FILE>;
close(FILE);
foreach my $lines (@lines) {
chomp (@lines);
my @owner = split( /\:/, $lines);
my @owners = $owner[1];
$personRight->BrowseEntry(-width=>20,-borderwidth=>2,
-relief=>'sunken',-textvariable=>\$perInfo->{CAROWNER},state=>
+'disabled',
-foreground=>'black',-background=>'white')->pack()->insert( 'e
+nd', @owners);
}
Basically I am trying to pull choices from a file to make a list box however the choices come out in individual list boxes instead of one list box. Have I explained it correctly? Thanks.