Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
tell that undefined values raise control exceptions in interpolations
  • Loading branch information
gfldex committed Jul 24, 2016
1 parent fc5b370 commit f17bc21
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions doc/Language/quoting.pod6
Expand Up @@ -147,6 +147,16 @@ You can also use unicode names with C<\c[]>.
dd $s;
OUTPUT«Str $s = "Str $s = "Camelia 💔 my ❤!"␤»
Interpolation of undefined values will raise a control exception that can be
cought in the current block with
L<CONTROL|https://docs.perl6.org/syntax/CONTROL>.
sub niler {Nil};
my Str $a = niler;
say("$a.html", "sometext");
say "alive"; # this line is dead code
CONTROL { .die };
=head2 Word quoting: qw
X<|qw word quote>X«|< > word quote»
Expand Down

0 comments on commit f17bc21

Please sign in to comment.