Another example you can add maybe after some further tweaking:
#!/usr/bin/env perl
use Dancer;
get '/' => sub {
"Hello World!"
};
dance;
$ perl bin/app.pl &
...
$ curl http://localhost:3000/
Hello world!
>From http://perldancer.org/
Gabor
http://szabgab.com/