Skip to content

Instantly share code, notes, and snippets.

@nplusp
Last active May 6, 2019 15:45
Show Gist options
  • Save nplusp/2ab44e5d288cee9737e7 to your computer and use it in GitHub Desktop.
Save nplusp/2ab44e5d288cee9737e7 to your computer and use it in GitHub Desktop.
Kill Perl
# http://swtch.com/~rsc/regexp/regexp1.html
$_ = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa";
if ( m/a?a?a?a?a?a?a?a?a?a?a?a?a?a?a?a?a?a?a?a?a?a?a?a?a?a?a?a?a?a?aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/ ) {
print "hello";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment