I think %hash=() will not actually free any memory, but undef %hash will.
If you're trying to monitor memory used by one variable, I think Devel::Size is your best option. If you want to monitor the size of the whole perl process, I think you'll have to go to the OS for that. How that works depends on your OS.
In reply to Re: Memory allocation and monitoring
by kyle
in thread Memory allocation and monitoring
by shiraz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |