Skip to content

Instantly share code, notes, and snippets.

@ashgti
Created September 7, 2010 17:54
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 ashgti/568737 to your computer and use it in GitHub Desktop.
Save ashgti/568737 to your computer and use it in GitHub Desktop.
#!/usr/bin/perl
use strict;
use warnings;
use mro 'c3';
use encoding 'utf8';
use Encode;
# Web Requirements
use Mojolicious::Lite;
get '/' => sub {
my $self = shift;
app->log->warn('Input was: ' . $self->param('input'));
$self->render(text => 'Input was: ' . $self->param('input'));
};
app->start;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment