Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Parsing Math Strings

by tune (Curate)
on Dec 06, 2001 at 20:19 UTC ( #129954=note: print w/replies, xml ) Need Help??


in reply to Parsing Math Strings

perlfunc:eval is your friend.
$a="(1/2)*4"; print eval($a),"\n";

--
tune

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://129954]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (11)
As of 2017-09-21 09:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (244 votes). Check out past polls.

    Notices?