Skip to content

Instantly share code, notes, and snippets.

@tempire
Created December 31, 2011 02:02
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 tempire/1542477 to your computer and use it in GitHub Desktop.
Save tempire/1542477 to your computer and use it in GitHub Desktop.
use Mojolicious::Lite;
use EV;
get '/' => sub {
shift->render(text => '');
};
my $w = EV::periodic 0, 2, 0, sub {say 'every 2 seconds'};
app->start;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment