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
    Thanks a bunch, shmem.! cant believe i tried so many variations of this and missed out on the comma. appreciate ur help! Thanks again!