I am running WIN2000 and perl 5.6.1
-----Original Message----- From: Robert Citek [mailto:rwcitek@;alum.calberkeley.org] Sent: Thursday, October 24, 2002 11:02 AM To: Goodman Kristi - kgoodm Cc: '[EMAIL PROTECTED]' Subject: Re: Large numbers 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 ********************************************************************* The information contained in this communication is confidential, is intended only for the use of the recipient named above, and may be legally privileged. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication is strictly prohibited. If you have received this communication in error, please re-send this communication to the sender and delete the original message or any copy of it from your computer system. Thank You. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]