spudzeppelin has asked for the wisdom of the Perl Monks concerning the following question:
I've been scratching my head on this one for a few days now. I'm getting spurious file writing errors (as in, randomly it FAILS to write the output file) with a routine sandwiched in a much larger piece of code, that resembles:
open INFILE, "$inputfn" || die "Error reading input file: $!\n"; open OUTFILE, ">$outputfn" || die "Error opening output file: $!\n"; while (<INFILE>) { ##...a bunch of stuff munged with regexes omitted... print OUTFILE "$_\n"; } close OUTFILE; close INFILE;
This has only been happening on Linux, but on machines running two different distros, two different (albeit both 2.2.x) kernels, and both on nfs-mounted filesystems and not. It's as if the open call is dying (ie. there isn't even a zero-length file lying around) without the die() being called.
Anyone have any thoughts? Known idiosyncracies that are similar? etc.?
Spud Zeppelin * spud@spudzeppelin.com
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Scratching my head...
by turnstep (Parson) on May 01, 2001 at 01:03 UTC | |
by virtualsue (Vicar) on May 01, 2001 at 01:31 UTC | |
by turnstep (Parson) on May 01, 2001 at 01:37 UTC | |
by virtualsue (Vicar) on May 02, 2001 at 01:55 UTC | |
by buckaduck (Chaplain) on May 01, 2001 at 01:08 UTC | |
by spudzeppelin (Pilgrim) on May 01, 2001 at 01:27 UTC | |
by turnstep (Parson) on May 01, 2001 at 01:35 UTC | |
by spudzeppelin (Pilgrim) on May 01, 2001 at 02:18 UTC | |
by spudzeppelin (Pilgrim) on May 01, 2001 at 20:34 UTC | |
|
Re: Scratching my head...
by wardk (Deacon) on May 01, 2001 at 01:05 UTC |