Help for this page
# Work out which mode we're in my $mode = param('mode'); ... # Otherwise call the default handler $modes->{default}->(); }
$modes{ param('mode') || 'default' }->();