({ 'open' => \&func1, 'create' => \&func2, 'delete' => \&func3, }->{$action} || \&default)->();