Skip to content

Instantly share code, notes, and snippets.

@shelling
Created May 11, 2013 16:49
Show Gist options
  • Select an option

  • Save shelling/5560575 to your computer and use it in GitHub Desktop.

Select an option

Save shelling/5560575 to your computer and use it in GitHub Desktop.
#!/usr/bin/env perl
use Modern::Perl;
use Data::Dumper;
use EV;
use AnyEvent;
use AnyEvent::HTTP;
sub shot {
my ($id) = @_;
http_get "http://www.gov.ph", keepalive => 1, => sub {
# say $id;
shot($id);
}
}
for my $i (1..1000) {
shot($i);
}
EV::run();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment