Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
(redmist) Re: (tye) Re: free 0x010400!by redmist (Deacon) |
on Jan 24, 2001 at 03:18 UTC ( [id://53836]=note: print w/replies, xml ) | Need Help?? |
I read some node (sorry, no URL) earlier today in which, it stated that when you undef a variable, it does free up space, but it frees it to perl, not to the OS. This means that in the snippet:
Perl will allocate to $bar the memory that $foo took up prior to $foo's undef'ing (or Moral Equivalent). redmist Silicon Cowboy redmist::webnode OK, I am a silly goober. Apparently free does NOT give memory back to the OS. It just throws it back n the heap. There goes *that* idea.
In Section
Meditations
|
|