Tie::Tk::Listbox provides allows to access Tk::Listbox and similar widgets as arrays.
The Tie::Tk::Listbox module allows you to tie the contents of a Tk::Listbox widget to an ordinary Perl array for easy modification. Additionally, you may tie a Tk::Scrolled widget or any other widget that advertises a Tk::Listbox subwidget.
Except the DELETE and EXISTS methods, whose purpose is somewhat opaque to the author because they should not be used on arrays, all tied methods have been implemented to behave exactly as the functions that operate on ordinary Perl arrays. If you happen to find out that this is not the case, please report your discovery to the author.
When tying an array to widgets other than Tk::Listbox widgets, the tying routines will extract the reference to the Tk::Listbox widget using the Subwidget method on the enclosing widget. If that's Greek to you, don't worry: Either read "Subwidget" in Tk::mega on how to use advertised widgets. Or ignore this and don't use the tied function on the tied array because you will get the Tk::Listbox widget back, not the enclosing widget as you might expect.