Hello Kristi, At 10:22 AM 10/24/2002 -0500, Goodman Kristi - kgoodm wrote: >Does anyone know why Perl has a hard time with large numbers and sometimes >turns them into negative numbers? Sorry if I am not being specific enough, >but really all I am doing is calculating the number of records in a file and >if it is a large number of records (lets say over a million) it will return >a negative number for some reason.
Could you please provide an example? Also on what operating system are you using perl? What perl version ('perl -V')? For exampe, this piece of code works just find on Cygwin and Linux: perl -e '$a=100000000000000 ; $a++ ; print $a, "\n" ; You must agree that 1 + 10^14 (~100 Terabytes) is a pretty big number. I doubt you have a file that has that many records. Regards, - Robert -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]