in reply to Re: perl memory usage
in thread perl memory usage

Actually, the undef is more likely to return memory. When a variable goes out of scope, Perl keeps the memory assigned to it in case you use it again. Calling undef on it returns that memory to the pool. However, it may or may not return the memory to the OS as seen here.