Curses::Widgets::Menu Question

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

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.

Powered by SuSE Linux 9.0 -- Kernel 2.6.11
News Reader slrn

Site Timeline