Skip to content

Instantly share code, notes, and snippets.

@nikopol
Created January 9, 2012 15:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nikopol/1583367 to your computer and use it in GitHub Desktop.
Save nikopol/1583367 to your computer and use it in GitHub Desktop.
dancer params test
#!/usr/bin/perl
use Dancer;
use Data::Dump;
prefix '/test';
get '/' => sub {
my $params = params;
"<pre>params:" . Data::Dump::dump($params) . "</pre>";
};
dance;
#tested with : curl 'http://0.0.0.0:3000/test/?toto=42'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment