Skip to content

Commit 04911e1

Browse files
committed
Perl 5.44 fatalization: document goto_construct
Also, note that no deprecations or fatalizations occurred in perl-5.42. ALL TESTS PASSING
1 parent e6a9e44 commit 04911e1

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

pod/perldeprecation.pod

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -69,25 +69,27 @@ prevailing version to another.
6969

7070
Category: "deprecated::subsequent_use_version"
7171

72-
=head2 Perl 5.42
73-
7472
=head3 Goto Block Construct
7573

76-
C<goto LABEL;> will produce a deprecated warning when jumping into the body
77-
of a loop or other block construct from outside. For instance
74+
C<goto LABEL;> now produces an exception when jumping into the body of a loop
75+
or other block construct from outside. For instance
7876

7977
while (should_loop($x)) {
8078
LABEL:
8179
do_stuff();
8280
}
8381
goto LABEL;
8482

85-
will produce a warning that this behavior is deprecated. In general you should
86-
just avoid doing this; the people that maintain your code will be grateful for
87-
your restraint.
83+
now throws an exception indicating that this behavior is no longer permitted.
8884

8985
Category: "deprecated::goto_construct"
9086

87+
=head2 Perl 5.42
88+
89+
There were no deprecations or fatalizations in Perl 5.42. (There were
90+
deprecations we I<planned> to do in Perl 5.42 but failed to carry out; they
91+
have been re-scheduled.)
92+
9193
=head2 Perl 5.40
9294

9395
=head3 Downgrading a C<use VERSION> to below v5.11

0 commit comments

Comments
 (0)