Skip to content

Instantly share code, notes, and snippets.

@gugod
Created December 27, 2009 05:47
Show Gist options
  • Select an option

  • Save gugod/264168 to your computer and use it in GitHub Desktop.

Select an option

Save gugod/264168 to your computer and use it in GitHub Desktop.
#!/usr/bin/env perl
use common::sense;
use Continuity;
Continuity->new(port => 5000)->loop;
my $counter = 0;
sub main {
my ($request) = @_;
$counter++;
$request->print("$counter\n");
}
# GET http://localhost:5000/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment