Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
The query works perfectly, but the weird thing is that when I'm passing parameters like this, it runs automatically each time I start the application, whether or not I've selected either one of the menu choices! The product list comes back twice, sorted once by dollar sales, and once by product number. If anyone can see what I'm doing wrong, or if you know of a Tk-specific method of passing parameters to a subroutine, I would be most deeply indebted to you.$action->command(-label=>"Sort by Number",-command=>\&queryDB("item_nu +mber")); $action->command(-label=>"Sort by Sales",-command=>\&queryDB("tot_sale +s"));
Thanks very much,
a Tk novice
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Perl/Tk parameters
by stephen (Priest) on Apr 15, 2002 at 17:06 UTC | |
by Anonymous Monk on Apr 15, 2002 at 17:55 UTC | |
Re: Perl/Tk parameters
by danboo (Beadle) on Apr 15, 2002 at 17:02 UTC |