Releasing memory to the OS was discussed in detail a while back in Not able to release memory.
In reply to Re: perl memory re-usage by eyepopslikeamosquito in thread perl memory re-usage by mreece