http://qs1969.pair.com?node_id=1049644


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.

Replies are listed 'Best First'.
Re^2: Perl 5.10 eval($string) memory leak
by choroba (Cardinal) on Aug 15, 2013 at 19:19 UTC
    Or by manually cleaning the symbol table.
    لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ
Re^2: Perl 5.10 eval($string) memory leak
by fuzzmonkey (Sexton) on Aug 16, 2013 at 20:31 UTC

    Hey thanks for telling me about Safe I have not read about that module before. It will come in handy!