Beefy Boxes and Bandwidth Generously Provided by pair Networks
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??


in reply to (tye)Re: free 0x010400!
in thread free 0x010400!

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:
my $foo = "I drank too much Dew."; undef $foo; my $bar = "I drank too much Dew.";
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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://53836]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (2)
As of 2024-04-20 05:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found