Skip to content

Instantly share code, notes, and snippets.

@kraih
Created June 22, 2011 03:30
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 kraih/1039455 to your computer and use it in GitHub Desktop.
Save kraih/1039455 to your computer and use it in GitHub Desktop.
#!/usr/bin/env perl
use Mojo::Base 'Mojolicious';
sub handler {
my $tx = pop;
my $res = $tx->res;
$res->code(200);
$res->body('Hello World!');
$tx->resume;
};
__PACKAGE__->start;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment