January 1999
Beginner
373 pages
9h 43m
English
Use the insert method to add items to the listbox:
$lb->insert(index, element, element ... );
Each element is another line in the listbox. The index is a valid index (see "Listbox Indexes" later in this chapter) that the new elements will be inserted before. For instance, to insert items at the end of the listbox:
$lb->insert('end', @new_elements);
# Or
$lb->insert('end', "Item1", "Item2", "Item3");
To insert items at the beginning of the listbox:
$lb->insert(0, @new_elements);