Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix self-contradiction in S04
  • Loading branch information
sorear committed Mar 5, 2011
1 parent d8e2c04 commit 6828ff4
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions S04-control.pod
Expand Up @@ -299,11 +299,13 @@ An explicit placeholder may also be used:

if blahblah() { return $^it }

However, use of C<$_> with a conditional statement's block is I<not>
considered sufficiently explicit to turn a 0-ary block into a 1-ary
function, so both these methods use the same invocant:
However, use of C<$_> with a conditional or conditionally repeating
statement's block is I<not> considered sufficiently explicit to turn
a 0-ary block into a 1-ary function, so all these methods use the
same invocant:

if .haste { .waste }
while .haste { .waste }

(Contrast with a non-conditional statement such as:

Expand Down

0 comments on commit 6828ff4

Please sign in to comment.