Hi,

On Jul 4, 9:53 am, [EMAIL PROTECTED] (Yitzle) wrote:
> OK. That wasn't clear. Perl doesn't have an int and string and char
> datatypes per say. Perl has a scalar and an array and a hash.
> Perl does this dynamic casting to int or string as needed.


Yes, but even for dynamic casting

During addition, you still need to have an internal integer variable
for calucation (that must fit into the CPU register size)


E.g.

use POSIX;

print LONG_MAX, "\n";

my $num = 99999999994;
print $num + 3;  # No overflow here


I am running on 32 bit CPU.

Thanks.


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to