Skip to content

Instantly share code, notes, and snippets.

@AlexDaniel
Last active July 22, 2017 23:25
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 AlexDaniel/ac7a4d4c49ec8d23e546529976dda67f to your computer and use it in GitHub Desktop.
Save AlexDaniel/ac7a4d4c49ec8d23e546529976dda67f to your computer and use it in GitHub Desktop.
#!/usr/bin/env perl6
use Gumbo;
constant URL = ‘https://perl6.org/community/’;
my $response = run(:out, ‘curl’, ‘-s’, URL).out.slurp-rest;
for ^1000 {
my $x = parse-html($response).root.elements(:TAG<a>, :RECURSE).gist;
}
say ‘should've crashed before reaching this’;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment