# New Ticket Created by  [EMAIL PROTECTED] 
# Please include the string:  [perl #35358]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/rt3/Ticket/Display.html?id=35358 >


FileCache module version 1.021
Calling cacheout with single arg.
cacheout called for every input record as they are sprayed
to mulitple output files.
Observed that not all records reached intended files.
While debugging, saw a record written to the file.  
It was flushed and present in the file on disk.  
The next call to cacheout truncated the file again!

I believe that the following line from the module was crafted 
with just a little too much cleverness and is not working
as intended.

$mode ||=  ( $saw{$file} = ! $saw{$file} ) ? '>': '>>';

Looks to me like it alternates between truncate and append


[Please do not change anything below this line]
-----------------------------------------------------------------
---
Flags:
    category=library
    severity=low
---
Site configuration information for perl v5.8.0:

Configured by perl at Fri Jul 26 13:28:18 CDT 2002.

Summary of my perl5 (revision 5.0 version 8 subversion 0) configuration:
  Platform:
    osname=aix, osvers=5.2.0.0, archname=aix-thread-multi
    uname='aix rocky 2 5 000ad7df4c00 '
    config_args=''
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=define use5005threads=undef useithreads=define 
usemultiplicity=define
    useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
    use64bitint=undef use64bitall=undef uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='cc_r', ccflags ='-D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE 
-qmaxmem=16384 -qnoansialias -DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT -q32 
-D_LARGE_FILES -qlonglong',
    optimize='-O',
    cppflags='-D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=16384 
-qnoansialias -DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT'
    ccversion='', gccversion='', gccosandvers=''
    intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=4321
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=8
    ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', 
lseeksize=8
    alignbytes=8, prototype=define
  Linker and Libraries:
    ld='ld', ldflags =' -brtl -b32'
    libpth=/lib /usr/lib /usr/ccs/lib
    libs=-lbind -lnsl -ldbm -ldl -lld -lm -lpthreads -lc_r -lcrypt -lbsd -lPW
    perllibs=-lbind -lnsl -ldl -lld -lm -lpthreads -lc_r -lcrypt -lbsd -lPW
    libc=/lib/libc.a, so=a, useshrplib=true, libperl=libperl.a
    gnulibc_version=''
  Dynamic Linking:
    dlsrc=dl_aix.xs, dlext=so, d_dlsymun=undef, ccdlflags='  
-bE:/usr/opt/perl5/lib/5.8.0/aix-thread-multi/CORE/perl.exp'
    cccdlflags=' ', lddlflags='-bhalt:4 -bM:SRE -bI:$(PERL_INC)/perl.exp 
-bE:$(BASEEXT).exp -bnoentry -lpthreads -lc_r'

Locally applied patches:
    

---
@INC for perl v5.8.0:
    /usr/opt/perl5/lib/5.8.0/aix-thread-multi
    /usr/opt/perl5/lib/5.8.0
    /usr/opt/perl5/lib/site_perl/5.8.0/aix-thread-multi
    /usr/opt/perl5/lib/site_perl/5.8.0
    /usr/opt/perl5/lib/site_perl
    .

---
Environment for perl v5.8.0:
    HOME=/opt/caliper
    LANG=C
    LANGUAGE (unset)
    LC__FASTMSG=true
    LD_LIBRARY_PATH (unset)
    
LIBPATH=/opt/informix/9.4/lib:/opt/informix/9.4/lib/esql:/opt/informix/9.4/lib/tools:/usr/lib
    LOGDIR (unset)
    
PATH=/opt/caliper/bin:/opt/informix/9.4/bin:/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/sbin:/usr/java131/jre/bin:/usr/java131/bin:/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/sbin:/usr/java131/jre/bin:/usr/java131/bin:/opt/keon/bin:/usr/local/bin:/opt/informix/Util:/opt/caliper/Util:/opt/cdunix/ndm/bin
    PERL_BADLANG (unset)
    SHELL=/usr/bin/ksh 

Reply via email to