in reply to Re: Clearing an Array of Array's from memory
in thread Clearing an Array of Array's from memory
printsuse Devel::Size qw(size); $foo = 2; while ($foo--) { { my $bar; print Devel::Size::size(\$bar), " ", length($bar), "\n"; $bar = " " x 10000000; } }
not12 0 10000025 0
which is what you'd expect if the memory was actually freed on scope exit.12 0 12 0
|
---|