Help for this page
my $dispatch = { 1 => sub { return search_menu($current_user) }, ... }; &{ $dispatch->{ $choice } };