summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRicardo Signes <rjbs@semiotic.systems>2021-04-30 14:50:01 -0400
committerRicardo Signes <rjbs@semiotic.systems>2021-04-30 14:50:01 -0400
commit35b06c4cb54cc9367ba86fa7400bca6c5953ad12 (patch)
treeddafbafad644720a55972a27cb3253c1f9b99484
parent2314e06e47d667676e3c2f07471640cde875290d (diff)
downloadperl-35b06c4cb54cc9367ba86fa7400bca6c5953ad12.tar.gz
feature.pm: note that "try" is experimental
...then regen
-rw-r--r--lib/feature.pm6
-rwxr-xr-xregen/feature.pl6
2 files changed, 12 insertions, 0 deletions
diff --git a/lib/feature.pm b/lib/feature.pm
index 21eed6b39d..e05a911b40 100644
--- a/lib/feature.pm
+++ b/lib/feature.pm
@@ -417,6 +417,12 @@ bareword filehandles for older versions of perl.
=head2 The 'try' feature.
+B<WARNING>: This feature is still experimental and the implementation may
+change or be removed in future versions of Perl. For this reason, Perl will
+warn when you use the feature, unless you have explicitly disabled the warning:
+
+ no warnings "experimental::try";
+
This feature enables the C<try> and C<catch> syntax, which allows exception
handling, where exceptions throwin from the body of the block introduced with
C<try> are caught by executing the body of the C<catch> block.
diff --git a/regen/feature.pl b/regen/feature.pl
index 03fb775819..1df01877e7 100755
--- a/regen/feature.pl
+++ b/regen/feature.pl
@@ -823,6 +823,12 @@ bareword filehandles for older versions of perl.
=head2 The 'try' feature.
+B<WARNING>: This feature is still experimental and the implementation may
+change or be removed in future versions of Perl. For this reason, Perl will
+warn when you use the feature, unless you have explicitly disabled the warning:
+
+ no warnings "experimental::try";
+
This feature enables the C<try> and C<catch> syntax, which allows exception
handling, where exceptions throwin from the body of the block introduced with
C<try> are caught by executing the body of the C<catch> block.