Search Perl pages
Professions, Sciences, Humanities, Business, ...
Text-based, GUI, Audio, Video, Keyboards, Mouse, Images,...
Conversions, tests, processing, manipulation,...
Integer, Floating point, Matrix, Statistics, Boolean, ...
Algorithms, Memory, Process control, Debugging, ...
Data storage, Integrity, Encryption, Compression, ...
Networks, protocols, Interprocess, Remote, Client Server, ...
Timing, Calendar and Clock, Audio, Video, Printer, Controls...
Management, Filtering, File & Directory access, Viewers, ...
Next: Floating-point Arithmetic
By default Perl assumes that it must do most of its arithmetic in floating
point. But by saying
you may tell the compiler that it's okay to use integer operations from here to the end of the enclosing
BLOCK. An inner
BLOCK may countermand this by saying
which lasts until the end of that
The bitwise operators (``&'', ``|'', ``^'', ``~'', ``<<``, and ''>>``) always produce integral results. However,
use integer still has meaning for them. By default, their results are interpreted as
unsigned integers. However, if
use integer is in effect, their results are interpreted as signed integers. For
~0 usually evaluates to a large integral value. However,
use integer; ~0 is -1.
Source: Perl operators and precedence
Copyright: Larry Wall, et al.
Previous: Constant Folding
(Corrections, notes, and links courtesy of RocketAware.com)
Up to: Integer math
Search | About | Comments | Submit Path: RocketAware > Perl >
RocketAware.com is a service of Mib Software
Copyright 2000, Forrest J. Cavalier III. All Rights Reserved.
We welcome submissions and comments