In perl.git, the branch blead has been updated

<http://perl5.git.perl.org/perl.git/commitdiff/7caca87c551af84ff2565616310024f95c4a5c7c?hp=f0ee386351fbbf1a41ead86e9163f688d1b37dc1>

- Log -----------------------------------------------------------------
commit 7caca87c551af84ff2565616310024f95c4a5c7c
Author: Doug Bell <madcity...@gmail.com>
Date:   Fri Oct 17 21:33:27 2014 -0500

    mention 'switch' is experimental in feature.pm
    
    The other experimental features already have nice warnings in feature.pm
-----------------------------------------------------------------------

Summary of changes:
 lib/feature.pm   | 6 ++++++
 regen/feature.pl | 6 ++++++
 2 files changed, 12 insertions(+)

diff --git a/lib/feature.pm b/lib/feature.pm
index 3f93f23..fe78881 100644
--- a/lib/feature.pm
+++ b/lib/feature.pm
@@ -135,6 +135,12 @@ This feature is available starting with Perl 5.10.
 
 =head2 The 'switch' feature
 
+B<WARNING>: Because the L<smartmatch operator|perlop/"Smartmatch Operator"> is
+experimental, Perl will warn when you use this feature, unless you have
+explicitly disabled the warning:
+
+    no warnings "experimental::smartmatch";
+
 C<use feature 'switch'> tells the compiler to enable the Perl 6
 given/when construct.
 
diff --git a/regen/feature.pl b/regen/feature.pl
index 1ffca38..b58381c 100755
--- a/regen/feature.pl
+++ b/regen/feature.pl
@@ -450,6 +450,12 @@ This feature is available starting with Perl 5.10.
 
 =head2 The 'switch' feature
 
+B<WARNING>: Because the L<smartmatch operator|perlop/"Smartmatch Operator"> is
+experimental, Perl will warn when you use this feature, unless you have
+explicitly disabled the warning:
+
+    no warnings "experimental::smartmatch";
+
 C<use feature 'switch'> tells the compiler to enable the Perl 6
 given/when construct.
 

--
Perl5 Master Repository

Reply via email to