[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: After retrieving data from DB, the memory doesn't seem to be freed up


On 10 May 2007, at 22:59, Lionel MARTIN wrote:
I would have believed the same, and that's why I believed that

$tmp = [0..100000];

followed by
$tmp = 1;

would free memory (no more reference to the anonymous array), but Perrin is telling me this is not the case.

Perl hangs on to the memory used directly by a lexical - in case it needs it again. But it doesn't hold on to things referred to by the lexical.

--
Andy Armstrong, hexten.net


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.