in reply to Re: Does undef free ram?
in thread Does undef free ram?

What you say is true. However for many purposes it also works to fork before doing whatever will take memory. Then the bloated child who used memory can exit, leaving the parent lean and trim.

Doing work within system calls can help for the same reason.