http://www.perlmonks.org?node_id=695391


in reply to General pattern for interactive text-mode script?

IO::Prompt's menu feature might be suitable for your application. It supports nested menus.