@@ -249,47 +249,6 @@ functions from enclosing functions may not be visible in the debugger.
249249Note that calling C<eval EXPR> in a function unconditionally causes a function
250250to reference its enclosing functions as it always has.
251251
252- =head2 Switch and Smart Match operator reinstated
253-
254- The "switch" feature and the smartmatch operator, C<~~>, were introduced in
255- v5.10. Their behavior was significantly changed in v5.10.1. When the
256- "experiment" system was added in v5.18.0, switch and smartmatch were
257- retroactively declared experimental. Over the years, proposals to fix or
258- supplement the features have come and gone.
259-
260- They were deprecated in Perl v5.38.0 and scheduled for removal in Perl
261- 5.42.0, and entirely removed in Perl 5.41.3.
262-
263- After some discussion these have been re-instated.
264-
265- Using them no longer produces a deprecation warning.
266-
267- Switch itself still requires the C<switch> feature, which is enabled
268- by default for feature bundles from v5.9.5 through to v5.34. Switch
269- remains disabled in feature bundles 5.35 and later, but can be
270- separately enabled:
271-
272- # no switch here
273- use v5.10;
274- # switch here
275- use v5.36;
276- # no switch here
277- use feature "switch";
278- # switch here
279-
280- Smart match now requires the C<smartmatch> feature, which is enabled
281- by default and included in all feature bundles up to 5.40. It is
282- disabled for the 5.41 feature bundle and later, but can be separately
283- enabled:
284-
285- # smartmatch here
286- use v5.41;
287- # no smartmatch here
288- use feature "smartmatch";
289- # smartmatch here
290-
291- [L<GH #22752|https://github.com/Perl/perl5/issues/22752>]
292-
293252=head1 Deprecations
294253
295254XXX Any deprecated features, syntax, modules etc. should be listed here.
0 commit comments