in reply to Perl 5.10 eval($string) memory leak
I don't know what kind of random code you are evaluating. Certainly it is possible to write code that occupies memory by means of global variables. You can avoid that using Safe.
Or fork.
In Section
Seekers of Perl Wisdom