Don't ask to ask, just ask | |
PerlMonks |
Re: Garbage Collection and undefby pg (Canon) |
on Oct 17, 2004 at 04:12 UTC ( [id://399871]=note: print w/replies, xml ) | Need Help?? |
"does undef just force garbage collection, or does it actually un-declare the my definition" If it undeclares the array, then the following would have syntax error, but it actually not, so the answer is clear:
Also garbage collector does not free memory right after you tell it to, it kicks in according to its own schedule.
In Section
Seekers of Perl Wisdom
|
|