Curses::Widgets::Menu Question
- From: HaroldWho <hlarons@xxxxxxxxx>
- Date: Wed, 11 May 2005 19:32:11 -0000
Anyone with experience using this module--the following code fragment is
supposed to run a sub after menu item selection is finished.
What *actually* happens is that *every one* of the subs is run (in order)
after menu item selection is finished.
I must be missing something simple, but I've run out of ideas.
MENUS => {
MENUORDER => [qw(Encrypt Decrypt Verify Sign Clearsign ListKeys)],
Encrypt => {
ITEMORDER => [('SingleFile','GlobbedFiles')],
'SingleFile' => \&return_selection1("single"),
'GlobbedFiles' => \&return_selection1("glob"),
},
Decrypt => {
ITEMORDER => [('SingleFile','GlobbedFiles')],
'SingleFile' => \&return_selection2("single"),
'GlobbedFiles' => \&return_selection2("glob"),
},
...
Any suggestions appreciated.
HW
--
Powered by SuSE Linux 9.0 -- Kernel 2.6.11
News Reader slrn 0.9.8.1
.
- Prev by Date: Re: C++ global constructors in xsub?
- Next by Date: Re: Tie::Persistent issues
- Previous by thread: Tie::Persistent issues
- Next by thread: ANNOUNCEMENT: Compress::Bzip2 2.08
- Index(es):
Relevant Pages
|
|