[dancer-users] How to pass Named Arguments in Dancer URL

WK wanradt at gmail.com
Wed Sep 16 11:10:10 BST 2015

2015-09-16 12:39 GMT+03:00 Parthiban, Anandaraaj <anandaraj.parthiban at cgi.com>:

> But How do we pass that
> Let me Know in case of any further informations required.

get '/method' => sub {
  # you have two ways to access params from query string :
  # first, there is Dancer keyword `param`
  my $name = param('name');

  # second, there is Dancer method `params`
  my $id = params->{ 'id' };

  # do whatever you need here

Kõike hääd,


More information about the dancer-users mailing list