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