Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Accessing parameters in Dancer

  • param(‘name’);
  • params->{name};
  • %params = params; $params{name};
  • $params = params; $params->{name};

Work both with GET and POST; Mixing values from QUERY_STRING and request body.

  • For POST requests also: params(‘body’)
  • For GET values see: params(‘query’)
  • For route parameters: params(‘route’)