in reply to Re: Small examples of string eval
in thread Small examples of string eval
You don't need eval for that, even if it makes it easier than parsing the argument and figuring out the value. The downside is that anyone can run arbitrary code using your script. With a tiny bit of programming you can do the math yourself and save yourself the security problem. :)
In Section
Seekers of Perl Wisdom