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

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

Hi, so i need help to remove a selected value from an array. i am using a combobox to display all the values in the array as different selections ans once a selection is chosen a button will then be pressed to disable the combobox and enable the next combobox that will then show all of the values of the same array with the value selected from the previous combobox removed from the array. i have been trying to get this to work for a fair while now and nothing i have really done seems to work, i'm looking for either full help or if there are some commands that someone could point me towards that would work, that would be much appreciated.

this is some things i have been trying, i have also been trying by appending a listing ID onto the array, creating a 2D array.

my ($ids, $attri) = split /,/, $str; splice (@array,$ids, 1); sub refreshdisplay{ $id=0; $arraylist = ""; for($id=0;$id<=$#array;$id++){ if($id == 0){ $arraylist = "$array[0]"; } else{ $arraylist .= "$id,$array[$id]\n"; } } }

$str is the variable name for what is selected within the combobox

for the gui that i am using im not entirely sure about it, but when i use the program to create it i select the perl TKx option