We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6059148 commit 7a52a1dCopy full SHA for 7a52a1d
pod/perldelta.pod
@@ -198,6 +198,22 @@ and L</New Warnings>
198
199
XXX L<message|perldiag/"message">
200
201
+=item *
202
+
203
+L<Can't redeclare catch variable as "%s"|perldiag/"Can't redeclare catch variable as "%s"">
204
205
+(F) A C<my>, C<our> or C<state> keyword was used with the exception variable in
206
+a C<catch> block:
207
208
+ try { ... }
209
+ catch (my $e) { ... }
210
+ # or catch (our $e) { ... }
211
+ # or catch (state $e) { ... }
212
213
+This is not valid syntax. C<catch> takes a bare variable name, which is
214
+automatically lexically declared.
215
+[GH #23222]
216
217
=back
218
219
=head3 New Warnings
0 commit comments