Leser: 17
1 2 3 4 5 6 7 8
my $menu = [ [ 'keep_db_choice', "- Choose Database", [ 'Simple', 'Enchanted' ] ], [ 'keep_schema_choice', "- Choose Schema", [ 'Simple', 'Enchanted' ] ], [ 'keep_table_choice', "- Choose Table", [ 'Simple', 'Enchanted' ] ], [ 'table_expand', "- Print Table", [ 'Simple', 'Enchanted' ] ], ]; function( $menu );
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
my $menu = { keep_db_choice => { prompt => "- Choose Database", choices => [ 'Simple', 'Enchanted' ] }, keep_schema_choice => { prompt => "- Choose Schema", choices => [ 'Simple', 'Enchanted' ] }, keep_table_choice => { prompt => "- Choose Table", choices => [ 'Simple', 'Enchanted' ] }, table_expand => { prompt => "- Print Table", choices => [ 'Simple', 'Enchanted' ] }, }; my $keys = [ qw( keep_db_choice keep_schema_choice keep_table_choice table_expand ) ]; function( $menu, { keys => $keys } );