Skip to content

Commit 446c551

Browse files
committed
Mention that smartmatch is deprecated
1 parent 5149b58 commit 446c551

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

lib/feature.pm

Lines changed: 3 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

regen/feature.pl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,7 @@ sub longest {
493493
__END__
494494
package feature;
495495
496-
our $VERSION = '1.76';
496+
our $VERSION = '1.77';
497497
498498
FEATURES
499499
@@ -597,6 +597,8 @@ =head2 The 'switch' feature
597597
See L<perlsyn/"Switch Statements"> for details.
598598
599599
This feature is available starting with Perl 5.10.
600+
It is deprecated starting with Perl 5.038, and using
601+
C<given>, C<when> or smartmatch will throw a warning.
600602
601603
=head2 The 'unicode_strings' feature
602604

0 commit comments

Comments
 (0)