i need to automatically update an optionmenu in Perl Tk by tying an array to an Optionmenu if possible.
To give an example, i can do this successfully with a listbox:
tie @datafile, "Tk::Listbox", $lb;
However, when I try doing the same for an Optionmenu it fails to AUTOLOAD.
tie @optionfile, "Tk::Optionmenu", $om;
Is this not possible? Or am I doing something wrong? Thanks.