diff options
author | Father Chrysostomos <sprout@cpan.org> | 2015-01-04 17:45:19 -0800 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2015-01-31 22:03:53 -0800 |
commit | 70ea8edf40d040203fd7e500c57232e04e3fc8cd (patch) | |
tree | 2194df94150020e908179354601549b970559d96 /lib | |
parent | fb7054ba7bb9bc87ce6a32c6fad702be20e10077 (diff) | |
download | perl-70ea8edf40d040203fd7e500c57232e04e3fc8cd.tar.gz |
feature.pm: Document the bitwise feature
Diffstat (limited to 'lib')
-rw-r--r-- | lib/feature.pm | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/lib/feature.pm b/lib/feature.pm index 81fb295ec4..70d8ada2b4 100644 --- a/lib/feature.pm +++ b/lib/feature.pm @@ -320,6 +320,24 @@ See L<perlref/Assigning to References> for details. This feature is available from Perl 5.22 onwards. +=head2 The 'bitwise' feature + +B<WARNING>: This feature is still experimental and the implementation may +change 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::bitwise"; + +This makes the four standard bitwise operators (C<& | ^ ~>) treat their +operands consistently as numbers, and introduces four new dotted operators +(C<&. |. ^. ~.>) that treat their operands consistently as strings. The +same applies to the assignment variants (C<&= |= ^= &.= |.= ^.=>). + +See L<perlop/Bitwise String Operators> for details. + +This feature is available from Perl 5.22 onwards. + =head1 FEATURE BUNDLES It's possible to load multiple features together, using |