Joshua Chamas wrote:
>
>What your code look like?
>
>--Josh
Josh:
This is a fragment of a large script, but I have isolated
the problem to it:
<--- start of fragment ----->
(use Text::CSV; is somewhere above)
my $wfname = 'a session based filename';
my $csv = Text::CSV->new();
my @fft = ();
my @line = ();
open(IN, "./fft <$wfname |") or die "could not open $wfname";
while (<IN>) {
$csv->parse($_);
@line = $csv->fields();
push(@fft, $line[0]);
}
close(IN);
$csv = ();
<--- end of fragment ----->
The indications are that the @fft variable will be in one of
three states when the loop terminates:
1. correct (my personal favorite)
2. have 2 empty elements (never correct)
3. undefined (real bad)
It seems that state 1 occurs about 30% of the time, but that
might just be a consequence of my Apache configuration (i.e. the
number of processes I allow, etc.).
Regards,
Steve
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]