diff options
author | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2007-01-15 18:25:45 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2007-01-15 18:25:45 +0000 |
commit | 3e7dd34d07ec3fbcf1e108a3270d6009e068e8eb (patch) | |
tree | 221d72357a1188182ff576ec9f1933e27f280439 /lib/feature.pm | |
parent | 607905347eb1bbe08eb76ed3e8e9e27622ad97ed (diff) | |
download | perl-3e7dd34d07ec3fbcf1e108a3270d6009e068e8eb.tar.gz |
Enable the ~~ operator by default.
Remove the ~~ feature.
p4raw-id: //depot/perl@29838
Diffstat (limited to 'lib/feature.pm')
-rw-r--r-- | lib/feature.pm | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/lib/feature.pm b/lib/feature.pm index ab79d69168..91e4562ea6 100644 --- a/lib/feature.pm +++ b/lib/feature.pm @@ -5,14 +5,13 @@ our $VERSION = '1.10'; # (feature name) => (internal name, used in %^H) my %feature = ( switch => 'feature_switch', - "~~" => "feature_~~", say => "feature_say", err => "feature_err", state => "feature_state", ); my %feature_bundle = ( - "5.10.0" => [qw(switch ~~ say err state)], + "5.10.0" => [qw(switch say err state)], ); # latest version here # keep it harcoded until we actually bump the version number to 5.10 @@ -79,13 +78,6 @@ given/when construct. See L<perlsyn/"Switch statements"> for details. -=head2 The '~~' feature - -C<use feature '~~'> tells the compiler to enable the Perl 6 -smart match C<~~> operator. - -See L<perlsyn/"Smart matching in detail"> for details. - =head2 The 'say' feature C<use feature 'say'> tells the compiler to enable the Perl 6 @@ -114,7 +106,7 @@ It's possible to load a whole slew of features in one go, using a I<feature bundle>. The name of a feature bundle is prefixed with a colon, to distinguish it from an actual feature. At present, the only feature bundles are C<use feature ":5.10"> and C<use feature ":5.10.0">, -which both are equivalent to C<use feature qw(switch ~~ say err state)>. +which both are equivalent to C<use feature qw(switch say err state)>. In the forthcoming 5.10.X perl releases, C<use feature ":5.10"> will be equivalent to the latest C<use feature ":5.10.X">. |