defined $command && $command eq 'search' ? &search : &main; # gosh, I love the trinary operator :)