Skip to content

Instantly share code, notes, and snippets.

@sycobuny
Created April 23, 2012 19:55
Show Gist options
  • Save sycobuny/2473403 to your computer and use it in GitHub Desktop.
Save sycobuny/2473403 to your computer and use it in GitHub Desktop.
Example plack script
my $app = sub {
my ($status) = 200;
my ($headers) = [ 'Content-type' => 'text/plain' ];
my ($body) = [ "SUP YOU GUYS\n", "IT'S MEEEEEEE\n" ];
return [$status, $headers, $body];
};
use Plack::Builder;
builder { $app }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment