Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created January 28, 2018 20:32
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 Whateverable/b84be515d7b8a115c49e4efa8ddee656 to your computer and use it in GitHub Desktop.
Save Whateverable/b84be515d7b8a115c49e4efa8ddee656 to your computer and use it in GitHub Desktop.
evalable6
sub infix:<d>($a,$b){[+]{(1..$b).pick) xx $a}}
(exit code 1)
===SORRY!=== Error while compiling /tmp/sS0f4AFe1Y
Unable to parse expression in subscript; couldn't find final '}' (corresponding starter was at line 1)
at /tmp/sS0f4AFe1Y:1
------> sub infix:<d>($a,$b){[+]{(1..$b).pick⏏) xx $a}}
expecting any of:
statement end
statement modifier
statement modifier loop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment