Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Perl 5.10 eval($string) memory leak

by betterworld (Deacon)
on Aug 15, 2013 at 19:04 UTC ( #1049644=note: print w/ replies, xml ) Need Help??


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.


Comment on Re: Perl 5.10 eval($string) memory leak
Re^2: Perl 5.10 eval($string) memory leak
by choroba (Abbot) 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 (Acolyte) 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!

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1049644]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (5)
As of 2014-12-28 18:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (182 votes), past polls