summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZefram <zefram@fysh.org>2017-11-22 17:16:36 +0000
committerZefram <zefram@fysh.org>2017-11-22 17:16:36 +0000
commit5e1cca32ac612f0b59508a99fbff671a693f39b9 (patch)
tree1510f8c9339c502bc9f08260ba4540fce37818bd
parent98729e54e4bb1f6f9e5e0a21c6e56461abe54dbf (diff)
downloadperl-5e1cca32ac612f0b59508a99fbff671a693f39b9.tar.gz
update perlexperiment.pod re smartmatch
Mention the big changes in 5.28, and explicate that the experiment covers switch as well as smartmatch.
-rw-r--r--pod/perlexperiment.pod9
1 files changed, 7 insertions, 2 deletions
diff --git a/pod/perlexperiment.pod b/pod/perlexperiment.pod
index cf0bab3b99..566a3e0e97 100644
--- a/pod/perlexperiment.pod
+++ b/pod/perlexperiment.pod
@@ -16,11 +16,11 @@ their inception, versions, etc. There's a lot of speculation here.
=over 8
-=item Smart match (C<~~>)
+=item Smart match (C<~~>) and switch (given/when)
Introduced in Perl 5.10.0
-Modified in Perl 5.10.1, 5.12.0
+Modified in Perl 5.10.1, 5.12.0, 5.28.0
Using this feature triggers warnings in the category
C<experimental::smartmatch>.
@@ -28,6 +28,11 @@ C<experimental::smartmatch>.
The ticket for this feature is
L<[perl #119317]|https://rt.perl.org/rt3/Ticket/Display.html?id=119317>.
+For historical reasons, the single experiment covers both the smart
+match operator (C<~~>) and the switch-related compound statements
+(given/when), which apart from the shared warning category are now
+unrelated in behaviour.
+
=item Pluggable keywords
The ticket for this feature is