Simon Wistow wrote: > For various reasons I needed to write something that would evaluate an > arbitary math's expression safely (i.e not just run it through eval ""). > <snip> > Now, is this worth packaing into a module? I didn't see anything on CPAN > like it and it's possibly quite useful for other people - there seems to > be precedence with Math::BooleanEval and, sort of orthogonally, > Math::Expr
You might like to check these two out: http://search.cpan.org/dist/Math-Expression http://search.cpan.org/dist/Safe I haven't used either but remember them being mentioned in a recent Perl Monks thread. /-\ http://search.yahoo.com.au - Yahoo! Search - Looking for more? Try the new Yahoo! Search