in reply to Perl Tk Insert

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?

That code doesn't run, but I would guess its because that is what the code tells it to do -- you create browseentry widgets in a loop -- you'll get more than one widget

Replies are listed 'Best First'.
Re^2: Perl Tk Insert
by PilotinControl (Pilgrim) on Feb 18, 2014 at 01:30 UTC

    Even the following code produces the same output

    open(FILE, "DATA/carownerdata.txt"); my @lines=<FILE>; close(FILE); while ( my $lines = <@lines> ) { chomp (@lines); my @owner = split( /\:/, $lines); $personRight->BrowseEntry(-width=>20,-borderwidth=>2, -relief=>'sunken',-textvariable=>\$perInfo->{CAROWNER},state=> +'disabled', -foreground=>'black',-background=>'white')->pack()->insert( 'e +nd', $owner[1]); }

      Even the following code produces the same output

      Yes, I believe it does, its not much different from the code you originally posted, so they should both do the same thing

      Is that a satisfactory answer? How can I improve my answer?