Help for this page

Select Code to Download


  1. or download this
    get '/:year/:month/:day' => sub {
        my $year = params->{year};
        my $month = params->{month};
        ...
    }
    
  2. or download this
    get '/*/*/*' => sub {
        my ($year, $month, $day) = splat;
        ...
    }
    
  3. or download this
    sub jan : Regex('^01$') { my ($self, $context, $bar, $baz) = @_; }
    sub feb : Regex('^02$') { my ($self, $context, $bar, $baz) = @_; }