morissette has asked for the wisdom of the Perl Monks concerning the following question:
Hey guys, this is my first post I hope that I dont make any mistakes.... I am working on a Perl REPL and have a problem that I am trying to find a solution for. Before we go please do not reply w/ possible security issues, im working that out now.
So pretty much, I have a shell built with css and jquery that sends an ajax request to a perl script then i want to execute that code in memory.
I've experimented with eval but that doesn't exactly function the way I want because I want to capture fatal and warnings and output them to STDOUT.
That works with writing the code to a file then executing with backticks but I want to avoid doing that.
Any help would be greatly appreciated, thanks!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Executing code block in memory
by davido (Cardinal) on Aug 08, 2012 at 20:13 UTC | |
by morissette (Novice) on Aug 08, 2012 at 20:36 UTC | |
by davido (Cardinal) on Aug 08, 2012 at 21:15 UTC | |
|
Re: Executing code block in memory
by kennethk (Abbot) on Aug 08, 2012 at 20:07 UTC | |
by morissette (Novice) on Aug 08, 2012 at 21:39 UTC | |
by kennethk (Abbot) on Aug 08, 2012 at 22:18 UTC |