Help for this page

Select Code to Download


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