in reply to Error with perl tk::OptionMenu
@vars = ("a1", "b2", "c3"); $opt = $w1->Optionmenu(-options=>\@vars, -variable=>\$tvars -command=> sub { print "got : ", shift, "\n"})->pac +k; # ----------------^ # missing comma.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Error with perl tk::OptionMenu
by user_katie (Initiate) on Sep 04, 2008 at 17:51 UTC |