in reply to Re: Leaks
in thread Leaks

Indeed there is. Install Memoize (ware the joke) and then take a look at Memoize::Expire.

Actually don't just beware of the joke. Stop and think about what it says for a bit. (That is why it is there after all.) It is actually pretty scary when you think about what you probably just did as root. (Install it if you have no idea what I am talking about.)