This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Document that smartmatch is deprecated and will be removed in 5.42
[perl5.git] / regen / feature.pl
index 32ae36c..33dcabd 100755 (executable)
@@ -605,6 +605,9 @@ given/when construct.
 See L<perlsyn/"Switch Statements"> for details.
 
 This feature is available starting with Perl 5.10.
+It is deprecated starting with Perl 5.38, and using
+C<given>, C<when> or smartmatch will throw a warning.
+It will be removed in Perl 5.42.
 
 =head2 The 'unicode_strings' feature