Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re^3: How to change the scalar value to some other context.by ig (Vicar) |
on Jul 24, 2009 at 12:05 UTC ( [id://782946]=note: print w/replies, xml ) | Need Help?? |
Is it secure method to use eval function. That is an excellent question. The short answer is: no. The eval function will parse and execute arbitrary code. Therefore, it is quite dangerous. Your program can still be secure if it ensures that the eval function will only evaluate "safe" code. To do this, you must carefully screen all inputs that go into the code the eval function evaluates. You might find perlsec and the 'taint' mode it describes helpful.
In Section
Seekers of Perl Wisdom
|
|