Permalink
Browse files

Fix two terms in a row

  • Loading branch information...
cedric-vincent committed Jan 9, 2013
1 parent 77f6462 commit a0f87cf9f872da54a16001398ccf4c991543e8e3
Showing with 2 additions and 2 deletions.
  1. +2 −2 S04-control.pod
View
@@ -1670,8 +1670,8 @@ Statement-level constructs may start only where the parser is expecting
the start of a statement. To embed a statement in an expression you
must use something like C<do {...}> or C<try {...}>.
- $x = do { given $foo { when 1 {2} when 3 {4} } } + $bar;
- $x = try { given $foo { when 1 {2} when 3 {4} } } + $bar;
+ $x = do { given $foo { when 1 {2}; when 3 {4} } } + $bar;
+ $x = try { given $foo { when 1 {2}; when 3 {4} } } + $bar;
The existence of a C<< statement_control:<BEGIN> >> does not preclude us from
also defining a C<< prefix:<BEGIN> >> that I<can> be used within an expression:

0 comments on commit a0f87cf

Please sign in to comment.