> I have some experience using perl, but I'm having a hard time finding or > building a sane perl interpreter for my particular machine. For example, > perl -e "print 1.1" yields something like 1.108333333. This was true both > of the 5.8.0 that came with my Red Hat 8.0 distro, and the 5.8.2 that I > built from source using defaults. The two builds give different results for > the "print 1.1" test, but they are both wrong. >
Interesting that they provide different results, but the result provided is not surprising, at least, if you are talking about the long decimal. perldoc -q decimal perldoc perlnumber Should help explain. > I imagine it's quite possible that something is deeply broken in Red Hat > 8.0, and I'm investigating other more recent distros. In particular I > wonder if something about my gcc or my glibc is screwy. But if anyone has > encountered this problem, and has ideas on how I might work around it, I'd > greatly appreciate the help! > The differing results could be caused by different compiler switches, slight differences in gcc versions, the orientation of the earth as it sits on its axis, etc. > Here is the output of myconfig for the 5.8.2 that I built (which did compile > successfully): > If you are still concerned after reading the docs I posted above, you should compare the perl -V output for *both* versions, see if and where they differ. After that if you are still concerned you should take a look through the archives for the perl5-porters list to see if you can find info on the differences with respect to this topic for versions 5.8.0-5.8.2. And if you are still concerned post a message there, I am sure one of them can definitely provide info. HTH, http://danconia.org > Summary of my perl5 (revision 5.0 version 8 subversion 2) configuration: > Platform: > osname=linux, osvers=2.4.18-14, archname=i686-linux > uname='linux swami 2.4.18-14 #1 wed sep 4 13:35:50 edt 2002 i686 i686 > i386 gnulinux ' > config_args='-de' > hint=recommended, useposix=true, d_sigaction=define > usethreads=undef use5005threads=undef useithreads=undef > usemultiplicity=undef > useperlio=define d_sfio=undef uselargefiles=define usesocks=undef > use64bitint=undef use64bitall=undef uselongdouble=undef > usemymalloc=n, bincompat5005=undef > Compiler: > cc='cc', ccflags > ='-fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64', > optimize='-O3', > cppflags='-fno-strict-aliasing' > ccversion='', gccversion='3.2 20020903 (Red Hat Linux 8.0 3.2-7)', > gccosandvers='' > intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234 > d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12 > ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', > lseeksize=8 > alignbytes=4, prototype=define > Linker and Libraries: > ld='cc', ldflags =' -L/usr/local/lib' > libpth=/usr/local/lib /lib /usr/lib > libs=-lnsl -ldb -ldl -lm -lcrypt -lutil -lc > perllibs=-lnsl -ldl -lm -lcrypt -lutil -lc > libc=/lib/libc-2.2.93.so, so=so, useshrplib=false, libperl=libperl.a > gnulibc_version='2.2.93' > Dynamic Linking: > dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic' > cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib' > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>