in reply to Re: Memory leak while printing ?? Don't think so....
in thread Memory leak while printing ?? Don't think so....
Looking at your code more carefully,
foreach my $row (@{$array1[$msmtable]}){ print OUT "$array1[$msmtable][$row][$x],"; }
I see that $row is a reference to an array, yet you're using that reference as an index. There's the large number we were looking for.
>perl -E"say 0+[];" 6994484
You want:
foreach my $row (@{$array1[$msmtable]}){ print OUT "$row->[$x],"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Memory leak while printing ?? Don't think so....
by baxy77bax (Deacon) on Aug 01, 2011 at 10:06 UTC |