in reply to Perl Not Releasing Memory

I simply fail to see why it shouldn't: you have no exit condition at all in your subroutine test, so it just gets on forever, eating up all the CPU and memory it finds until you block it... the problem is not Perl, just your code that's flawed. Try to read some of the Tutorials, if you don't feel at ease with Perl syntax; but never forget to look at your code!