diff options
author | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2007-01-15 13:30:51 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2007-01-15 13:30:51 +0000 |
commit | 8fd870d929de5f21b44ff2edf7d01f4570f834b3 (patch) | |
tree | 694c45abe5f118fb1c69f9777231c3cd409ec5fe /lib/feature.pm | |
parent | 76d78319f4afd6fb51d3c21ce508a99490772708 (diff) | |
download | perl-8fd870d929de5f21b44ff2edf7d01f4570f834b3.tar.gz |
Introduce the :5.10.0 feature bundle, and make :5.10 an
alias to it (aimed at be an alias to the latest :5.10.X)
p4raw-id: //depot/perl@29822
Diffstat (limited to 'lib/feature.pm')
-rw-r--r-- | lib/feature.pm | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/lib/feature.pm b/lib/feature.pm index f8e2862240..ab79d69168 100644 --- a/lib/feature.pm +++ b/lib/feature.pm @@ -1,6 +1,6 @@ package feature; -our $VERSION = '1.01'; +our $VERSION = '1.10'; # (feature name) => (internal name, used in %^H) my %feature = ( @@ -12,9 +12,12 @@ my %feature = ( ); my %feature_bundle = ( - "5.10" => [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 +$feature_bundle{"5.10"} = $feature_bundle{"5.10.0"}; +#$feature_bundle{"5.10"} = $feature_bundle{sprintf("%vd",$^V)}; # TODO: # - think about versioned features (use feature switch => 2) @@ -110,8 +113,11 @@ See L<perlsub/"Persistent Private Variables"> for details. 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 bundle is C<use feature ":5.10">, which is equivalent -to C<use feature qw(switch ~~ say err state)>. +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)>. + +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">. =cut |