Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created April 15, 2019 22:11
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/90504ddaf40fbda21ae61fc3f4a0a3ca to your computer and use it in GitHub Desktop.
Save Whateverable/90504ddaf40fbda21ae61fc3f4a0a3ca to your computer and use it in GitHub Desktop.
evalable6
my $a = False; sub a-or-b { $a ?? /^ 'a'/ !! /^ 'b'/ }; say ('baa' ~~ / ?{ a-or-b() } / );
(exit code 1)
===SORRY!=== Error while compiling /tmp/5CW3NAGDzT
Quantifier quantifies nothing
at /tmp/5CW3NAGDzT:1
------> /^ 'a'/ !! /^ 'b'/ }; say ('baa' ~~ / ?⏏{ a-or-b() } / );
expecting any of:
term
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment