http://www.perlmonks.org?node_id=549342


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. :)

--
brian d foy <brian@stonehenge.com>
Subscribe to The Perl Review