PhilHibbs has asked for the wisdom of the Perl Monks concerning the following question:
My question is: If I did want to improve the security while retaining the functionality, how would I go about it? Does exec go out the window entirely?
How, for instance, would you go about implement something like Google Calculator?
Update:The purpose of the code is to do mathematical calculations. I got fed up of switching to Calc and doing it there, and losing the results of old calculations, so now I do all my maths in a text editor. Given this input:
4*3 11-4*2it produces this output:
4*3 = 12 11-4*2 = 3
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Hardening an exec-based script
by ikegami (Patriarch) on Aug 16, 2004 at 16:22 UTC | |
by PhilHibbs (Hermit) on Aug 16, 2004 at 16:33 UTC |