PilotinControl has asked for the wisdom of the Perl Monks concerning the following question:
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perl Tk Insert
by kcott (Archbishop) on Feb 18, 2014 at 07:29 UTC | |
by PilotinControl (Pilgrim) on Feb 18, 2014 at 19:15 UTC | |
|
Re: Perl Tk Insert
by Anonymous Monk on Feb 18, 2014 at 00:31 UTC | |
by PilotinControl (Pilgrim) on Feb 18, 2014 at 01:30 UTC | |
by Anonymous Monk on Feb 18, 2014 at 06:21 UTC |