Pathologically Eclectic Rubbish Lister PerlMonks

### Re: Perl 5.10 eval($string) memory leak by betterworld (Curate)  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 Replies are listed 'Best First'. Re^2: Perl 5.10 eval($string) memory leak
by choroba (Chancellor) 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!

Create A New User
Node Status?
node history
Node Type: note [id://1049644]
help
Chatterbox?
 [thezip]: So I have a script that generates a log file. After script completion, I want tohave VIM open this logfile. [thezip]: i don't get the command line "back" until I close VIM. No what I want to happen... [thezip]: I currently don't have access to CYGWIN, else I'd just do a tail -f on the logfile. [Corion]: thezip: If you want to open vim and can live with opening a second console window, use start "The results" vim.exe c:\path\to\logfile .log [thezip]: Ooops... I lied. I guess Cygwin is back. I'll just do a tail -f instead. Better. Sorry for the noise.

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (12)
As of 2017-03-27 18:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
Voting Booth?
Should Pluto Get Its Planethood Back?

Results (321 votes). Check out past polls.