SWITCH: { get_today(@params), last SWITCH if ($date eq 'today'); get_otherday($date,@params), last SWITCH if ($date nq 'today'); }