Created
July 17, 2018 15:06
-
-
Save scovit/f162349b4ac93bab757c7b7bd693afac to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env perl6 | |
my @line; | |
for $*IN.lines>>.words -> @g { | |
my int $index = @g[0].Int; | |
@line[$index - 1] = @g.tail(*-2); | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment