RE: references and freeing memory

2004-06-04 Thread Wiggins d Anconia
> >> The perlref docs state "Hard references are smart--they keep track of > >> reference counts for you, automatically freeing the thing referred to > >> when its reference count goes to zero." My interpretation of this is > >> that when a reference goes out of scope the memory used by > >> the

RE: references and freeing memory

2004-06-04 Thread Freimuth,Robert
>> The perlref docs state "Hard references are smart--they keep track of >> reference counts for you, automatically freeing the thing referred to >> when its reference count goes to zero." My interpretation of this is >> that when a reference goes out of scope the memory used by >> the referent i

RE: references and freeing memory

2004-06-04 Thread Tim Johnson
Yes and no. From what I understand (and someone please correct me if I'm wrong), the memory is freed in the sense that it is returned to Perl, but it is not returned to your system. Once there are no references to a variable, the memory can be overwritten by future variables used in your program