Created
August 12, 2017 10:53
-
-
Save renormalist/f26df587188460bc5b7f4c4d9f82367a to your computer and use it in GitHub Desktop.
silly given/when
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
for @els -> $t { | |
my $f = False; | |
given $t.WHAT { | |
when Perl6::String::Interpolation { print "INTERPOLATION"; $f=True} | |
when Perl6::Bareword { print "BAREWORD"; $f=True } | |
} | |
say " ({$t.content})" if $f; | |
} |
Author
renormalist
commented
Aug 12, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment