Skip to content

Instantly share code, notes, and snippets.

@AlexDaniel
Last active February 9, 2019 20:40
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/53e64bd4d6fa7361bb42c3d9ed75e8cf to your computer and use it in GitHub Desktop.
Save AlexDaniel/53e64bd4d6fa7361bb42c3d9ed75e8cf to your computer and use it in GitHub Desktop.
for $*IN.lines() {
my %h = .split(“\t”).grep(/^<print>+$/).map(*.split(‘ ’, 2)).flat;
print "\t$_ {%h{$_}||‘’}" for @*ARGS || %h.keys.sort; print "\t\n";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment