[Dancer-users] named parameters in GET

Puneet Kishor punk.kish at gmail.com
Sun Dec 12 05:21:36 CET 2010

I am having a bit of mental block... is something like this possible?

in the browser /foo/bar/?a=blah&b=bork

and in the applications

get '/foo/:page' => sub {
    my $page = params->{page};
    my $a = params->{a};
    my $b = params->{b};

I keep on getting the "void" message. If I change the uri to

/foo/bar?a=blah&b=bork (note, the missing trailing / after bar)

then the browser itself barfs saying the file wasn't found.

Puneet Kishor

More information about the Dancer-users mailing list