in reply to Memory leak while printing ?? Don't think so....
If $array1[$msmtable][$row] doesn't exist, then you'd be expanding an array or two to autovivify that element.
>perl -MData::Dumper -E"my $x = qq{$a[4][2][8]}; print Dumper \@a;" $VAR1 = [ undef, undef, undef, undef, [ undef, undef, [] ] ];
If $msmtable or $row is very large, then you'd be allocating a very large array.
PS — "Memory leak" does not mean "large memory usage".
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Memory leak while printing ?? Don't think so....
by ikegami (Patriarch) on Aug 01, 2011 at 09:57 UTC | |
by baxy77bax (Deacon) on Aug 01, 2011 at 10:06 UTC |