Mer Gilmartin wrote:

/ ...

>>>    'command' => proc { p "Load from database"; }
>>>       add 'command'
>>> 'label' => 'Exit program',
>>> 'underline' => 0,
>>> 'command' => proc{exit}
> 
>> There's not enough code to create a working example, so this is just a
>> guess, but I would ask where "exit' is defined.
> 
> so the problem would be there?

That depends. It depends on what you mean when you say it doesn't work.
Obviously if you call "exit" and "exit" has been redefined, or hangs for
some reason, you will get the symptom that the application doesn't exit. It
might be a good idea to trace the action to see where it goes.

-- 
Paul Lutus
http://www.arachnoid.com