summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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.