Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Perl Script for reading a mathematical expression

by rahul02 (Initiate)
on Jan 29, 2014 at 13:42 UTC ( #1072511=perlquestion: print w/replies, xml ) Need Help??
rahul02 has asked for the wisdom of the Perl Monks concerning the following question:

i want to know the basic idea for writing a perl script which will read a mathematical expression from user, evaluate the result and print on the screen.
  • Comment on Perl Script for reading a mathematical expression

Replies are listed 'Best First'.
Re: Perl Script for reading a mathematical expression
by moritz (Cardinal) on Jan 29, 2014 at 14:18 UTC
Re: Perl Script for reading a mathematical expression
by LanX (Chancellor) on Jan 29, 2014 at 13:58 UTC
    Googling the text of your homework should easily give you the basic ideas.

    Please show some effort. :)

    update

    You are welcome to show code examples and ask more detailed questions.

    @consideration!

    The OP is not empty but malformed

     <i want to know the basic idea for writing a perl script which will read a mathematical expression from user, evaluate the result and print on the screen. ></i>

    should be edited not reaped.

    Cheers Rolf

    ( addicted to the Perl Programming Language)

Re: Perl Script for reading a mathematical expression (crosspost)
by LanX (Chancellor) on Jan 31, 2014 at 00:08 UTC

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1072511]
Approved by Corion
help
Chatterbox?
[Eily]: I just wrote a oneliner to solve a (non perl) colleague's problem, and it worked on the first try
[Eily]: and he wasn't impressed
1nickt adds gingersnaps to the platter on the sideboard.
[Eily]: sure it was a pretty standard one liner (of the $h{$1} = $2 if /regex/; END { pp \%h; } variety), but he's not supposed to know that!
[Eily]: what's the point of writing perl if people aren't impressed :P
[sierpinski]: Haha

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (10)
As of 2017-04-26 15:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (482 votes). Check out past polls.