Skip to content

Instantly share code, notes, and snippets.

@unbit
Created May 30, 2012 13:11
Show Gist options
  • Save unbit/2836246 to your computer and use it in GitHub Desktop.
Save unbit/2836246 to your computer and use it in GitHub Desktop.
my $app = sub {
my $env = shift;
$env->{'psgi.input'}->read(my $buf, 4096);
print $buf."\n" ;
return [
'200',
[ 'Content-Type' => 'text/html' ],
[ "<h1>Hello World</h1>" ],
];
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment