diff options
author | Brian Fraser <fraserbn@gmail.com> | 2012-01-09 02:44:16 -0300 |
---|---|---|
committer | Karl Williamson <public@khwilliamson.com> | 2012-01-29 10:07:40 -0700 |
commit | 2a4315f8fb099a3fd3bbd5d9994af3919a6c5b05 (patch) | |
tree | c8d072bd39344d9d28c511f1412cfc74967f3424 /lib/feature.pm | |
parent | b36bf33f6564c3e9a9ff131f4f3c9980b7a8af15 (diff) | |
download | perl-2a4315f8fb099a3fd3bbd5d9994af3919a6c5b05.tar.gz |
Add the fc keyword in regen/feature.pl
It doesn't do anything yet.
Diffstat (limited to 'lib/feature.pm')
-rw-r--r-- | lib/feature.pm | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/lib/feature.pm b/lib/feature.pm index 9558f8c39e..399303acf9 100644 --- a/lib/feature.pm +++ b/lib/feature.pm @@ -5,9 +5,10 @@ package feature; -our $VERSION = '1.25'; +our $VERSION = '1.26'; our %feature = ( + fc => 'feature_fc', say => 'feature_say', state => 'feature_state', switch => 'feature_switch', @@ -21,7 +22,7 @@ our %feature = ( our %feature_bundle = ( "5.10" => [qw(array_base say state switch)], "5.11" => [qw(array_base say state switch unicode_strings)], - "5.15" => [qw(current_sub evalbytes say state switch unicode_eval unicode_strings)], + "5.15" => [qw(current_sub evalbytes fc say state switch unicode_eval unicode_strings)], "default" => [qw(array_base)], ); @@ -211,6 +212,15 @@ This feature is available under this name starting with Perl 5.16. In previous versions, it was simply on all the time, and this pragma knew nothing about it. +=head2 The 'fc' feature + +C<use feature 'fc'> tells the compiler to enable the C<fc> function, +which implements Unicode casefolding. + +See L<perlfunc/fc> for details. + +This feature is available from Perl 5.16 onwards. + =head1 FEATURE BUNDLES It's possible to load multiple features together, using @@ -232,7 +242,7 @@ The following feature bundles are available: :5.14 say state switch unicode_strings array_base :5.16 say state switch unicode_strings - unicode_eval evalbytes current_sub + unicode_eval evalbytes current_sub fc The C<:default> bundle represents the feature set that is enabled before any C<use feature> or C<no feature> declaration. |