Skip to content

Instantly share code, notes, and snippets.

@zoffixznet

zoffixznet/p6.p6 Secret

Created February 21, 2018 20:04
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 zoffixznet/c03288a8eb515f6aeedc0dc88ff9af5d to your computer and use it in GitHub Desktop.
Save zoffixznet/c03288a8eb515f6aeedc0dc88ff9af5d to your computer and use it in GitHub Desktop.
#!/usr/bin/env perl
sub MAIN(IO() $raw-brain where .e) {
"brain.txt".IO.spurt: $raw-brain.slurp.subst: :g,
/
«<.upper>+»
| <:letter>+<:digit>+
| <:digit>+<:letter>+
| <:digit>+<:punctuation>+
| <:punctuation>+<:digit>+
/,
''
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment