All Perl math operations are performed on double-precision floating-point values.
#If you want to use integer math, you can place the following statement in a block.
#A block goes from opening curly brace, {, to the closing brace, }.
use integer;
#!/usr/bin/perl -w
do {
# Use integer math inside block only.
use integer;
for ($i = 0; $i < 10; $i++) {
print "$i\n";
}
}