On 5/11/07, James. L <[EMAIL PROTECTED]> wrote:
hm. lexical variable release memory to perl. but reference doesn't..
No, that isn't what I was saying, and you're mixing separate concepts together. A lexical variable can be a reference. You can have a reference to a lexical variable. They are not opposing things. The p5p references already posted in this thread are the best place to read up if you want more information about the memory behavior of Perl's garbage collection. - Perrin