Why am I getting these emails even after unsubscribing?

-----Original Message-----
From:   [EMAIL PROTECTED] on behalf of Perrin Harkins
Sent:   Fri 5/11/2007 8:53 PM
To:     James. L
Cc:     modperl@perl.apache.org
Subject:        Re: After retrieving data from DB, the memory doesn't seem to 
be freed up

On 5/11/07, James. L <[EMAIL PROTECTED]> wrote:
> sorry, i wasn't clear. I understand that memory
> allocated by a lexical variable(not reference) can be
> released to perl. as described by the practical
> modperl link you posted.
>
> I would expect that both behave the same however you
> are saying a reference won't release memory back to
> Perl.

No, I'm not saying that at all.

If you look at a simple lexical scalar with Devel::Peek, not a
reference and not referenced by anything else but still in scope, you
will see it has a reference count of 1.  When it goes out of scope,
the reference count will go to 0.  The memory will not be returned to
perl's general pool at that point unless you call undef on it.  That's
all I was saying in the conversation you quoted.

- Perrin




*****************************************************************************
The information contained in this message, including attachments, may contain 
privileged or confidential information that is intended to be delivered only to 
the person identified above. If you are not the intended recipient, or the 
person responsible for delivering this message to the intended recipient, 
Alltel requests that you immediately notify the sender and asks that you do not 
read the message or its attachments, and that you delete them without copying 
or sending them to anyone else. 


Reply via email to