in reply to
Parsing Math Strings
perlfunc:eval
is your friend.
$a="(1/2)*4"; print eval($a),"\n";
[download]
--
tune
Comment on
Re: Parsing Math Strings
Download
Code
In Section
Seekers of Perl Wisdom