Skip to content

Commit 8a758ad

Browse files
committed
doc quietly
1 parent 106a629 commit 8a758ad

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

doc/Language/control.pod

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -681,7 +681,7 @@ All these forms may produce a return value the same way C<loop> does.
681681
682682
=head2 X<once|control flow>
683683
684-
A block prefix with once will be executed exactly once, even if placed inside a
684+
A block prefix with C<once> will be executed exactly once, even if placed inside a
685685
loop or a recursive routine.
686686
687687
my $guard = 3;
@@ -691,6 +691,14 @@ loop or a recursive routine.
691691
print 'many'
692692
} # OUTPUT«once␤manymanymany»
693693
694+
=head2 X<quietly|control flow>
695+
696+
A C<quietly> block will suppress warnings.
697+
698+
quietly { warn 'kaput!' };
699+
warn 'still kaput!';
700+
OUTPUT«still kaput! [...]␤»
701+
694702
=head2 LABELs
695703
696704
C<while>, C<until>, and C<for> loops can all take a label, which can be

0 commit comments

Comments
 (0)