You do not have USE_LARGE_FILE support enabled. This could be causing the problem. However, it will only cause a problem for files larger than 2G. Are the files giving you problems larger than 2G? ----- Original Message ----- From: "Goodman Kristi - kgoodm" <[EMAIL PROTECTED]> To: "'Tanton Gibbs'" <[EMAIL PROTECTED]>; "'Robert Citek'" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Thursday, October 24, 2002 4:24 PM Subject: RE: Large numbers
> Here is the output from perl -V > > > Summary of my perl5 (revision 5 version 6 subversion 1) configuration: > Platform: > osname=MSWin32, osvers=4.0, archname=MSWin32-x86-multi-thread > uname='' > config_args='undef' > hint=recommended, useposix=true, d_sigaction=undef > usethreads=undef use5005threads=undef useithreads=define > usemultiplicity=define > useperlio=undef d_sfio=undef uselargefiles=undef usesocks=undef > use64bitint=undef use64bitall=undef uselongdouble=undef > Compiler: > cc='cl', ccflags ='-nologo -O1 -MD -DNDEBUG -DWIN32 -D_CONSOLE > -DNO_STRICT -DHAVE_DES_FCRYPT -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS > -DPERL_MSVCRT_READFIX', > optimize='-O1 -MD -DNDEBUG', > cppflags='-DWIN32' > ccversion='', gccversion='', gccosandvers='' > intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234 > d_longlong=undef, longlongsize=8, d_longdbl=define, longdblsize=10 > ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', > lseeksize=4 > alignbytes=8, usemymalloc=n, prototype=define > Linker and Libraries: > ld='', ldflags ='-nologo -nodefaultlib -release > -libpath:"C:\Perl\lib\CORE" -machine:x86' > libpth="C:\Perl\lib\CORE" > libs= oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib > comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib netapi32.lib > uuid.lib wsock32.lib mpr.lib winmm.lib version.lib odbc32.lib odbccp32.lib > msvcrt.lib > perllibs= oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib > comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib netapi32.lib > uuid.lib wsock32.lib mpr.lib winmm.lib version.lib odbc32.lib odbccp32.lib > msvcrt.lib > libc=msvcrt.lib, so=dll, useshrplib=yes, libperl=perl56.lib > Dynamic Linking: > dlsrc=dl_win32.xs, dlext=dll, d_dlsymun=undef, ccdlflags=' ' > cccdlflags=' ', lddlflags='-dll -nologo -nodefaultlib -release > -libpath:"C:\Perl\lib\CORE" -machine:x86' > > > Characteristics of this binary (from libperl): > Compile-time options: MULTIPLICITY USE_ITHREADS PERL_IMPLICIT_CONTEXT > PERL_IMPLICIT_SYS > Locally applied patches: > ActivePerl Build 626 > Built under MSWin32 > Compiled at May 2 2001 01:31:15 > %ENV: > PERLDB_OPTS="RemotePort=127.0.0.1:2000" > @INC: > C:/Perl/lib > C:/Perl/site/lib > . > > -----Original Message----- > From: Tanton Gibbs [mailto:thgibbs@;deltafarms.com] > Sent: Thursday, October 24, 2002 2:37 PM > To: Goodman Kristi - kgoodm; 'Robert Citek' > Cc: [EMAIL PROTECTED] > Subject: Re: Large numbers > > > Can you run perl -V and send the results to the list. It may be that you > didn't compile with USE_LARGE_FILES. Are you using ActiveState perl? > ----- Original Message ----- > From: "Goodman Kristi - kgoodm" <[EMAIL PROTECTED]> > To: "'Robert Citek'" <[EMAIL PROTECTED]> > Cc: <[EMAIL PROTECTED]> > Sent: Thursday, October 24, 2002 12:00 PM > Subject: RE: Large numbers > > > > 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] > > > > > > > > > > > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]