Skip to content

Instantly share code, notes, and snippets.

@Akron
Created January 6, 2012 18:07
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 Akron/1571698 to your computer and use it in GitHub Desktop.
Save Akron/1571698 to your computer and use it in GitHub Desktop.
#!/usr/bin/env perl
BEGIN {
unshift(@INC,
'home/me/cgi-bin/lib' # absolute path
};
use Mojolicious::Lite;
my $count = 0;
get '/' => sub {
my $self = shift;
$self->render(text => 'Hello World!' . ++$count);
};
app->start('fastcgi');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment