In perl.git, the branch blead has been updated <http://perl5.git.perl.org/perl.git/commitdiff/3eab78e37a32aa79c954c0d957e1e37964cc9cc4?hp=ab4c2c27cb4fd913cd324319b6e04e879e5eb2b6>
- Log ----------------------------------------------------------------- commit 3eab78e37a32aa79c954c0d957e1e37964cc9cc4 Author: Casey West <ca...@geeknest.com> Date: Tue Sep 28 20:11:30 2010 -0700 [perl #22193] Clarify references to âuse integerâ in perlop ----------------------------------------------------------------------- Summary of changes: pod/perlop.pod | 14 +++++++------- 1 files changed, 7 insertions(+), 7 deletions(-) diff --git a/pod/perlop.pod b/pod/perlop.pod index d5ca942..c99f672 100644 --- a/pod/perlop.pod +++ b/pod/perlop.pod @@ -2635,17 +2635,17 @@ floating point. But by saying use integer; -you may tell the compiler that it's okay to use integer operations -(if it feels like it) from here to the end of the enclosing BLOCK. -An inner BLOCK may countermand this by saying +you may tell the compiler to use integer operations +(see L<integer> for a detailed explanation) from here to the end of +the enclosing BLOCK. An inner BLOCK may countermand this by saying no integer; which lasts until the end of that BLOCK. Note that this doesn't -mean everything is only an integer, merely that Perl may use integer -operations if it is so inclined. For example, even under C<use -integer>, if you take the C<sqrt(2)>, you'll still get C<1.4142135623731> -or so. +mean everything is an integer, merely that Perl will use integer +operations for arithmetic, comparison, and bitwise operators. For +example, even under C<use integer>, if you take the C<sqrt(2)>, you'll +still get C<1.4142135623731> or so. Used on numbers, the bitwise operators ("&", "|", "^", "~", "<<", and ">>") always produce integral results. (But see also -- Perl5 Master Repository