Help for this page
$userInput = <STDIN>; chomp $userInput; $userInput = uc $userInput;
my %pbactions = ( L => \&list_phone_book, ... defined $pbactions{$userInput} ? $pbactions{$userInput}->() : usage();