Skip to content

Instantly share code, notes, and snippets.

@clkao
Created March 6, 2010 02:14
Show Gist options
  • Save clkao/323436 to your computer and use it in GitHub Desktop.
Save clkao/323436 to your computer and use it in GitHub Desktop.
use Plack::Builder;
builder {
mount '/_hippie' => sub {
my $env= shift; warn "hi hippie" ;
return [ '200', [ 'Content-Type' => 'text/plain' ], [ "Hippie" ] ]
};
sub { [ '200', [ 'Content-Type' => 'text/plain' ], [ "none hippie" ] ] };
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment