Skip to content

Instantly share code, notes, and snippets.

/old.pl Secret

Created February 18, 2016 13:44
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 anonymous/c824e99cd8bd9446dfe1 to your computer and use it in GitHub Desktop.
Save anonymous/c824e99cd8bd9446dfe1 to your computer and use it in GitHub Desktop.
# Relaxed or wildcard start (upgrade when quoted)
elsif ($char eq '#' || $char eq '*') {
push @tree, ['placeholder', ''] unless $spec;
$tree[-1][2] = $char eq '#' ? 'relaxed' : 'wildcard';
$spec = 1;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment