Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: my program will not display a correct answer, to a random question?

by toolic (Bishop)
on Aug 04, 2011 at 16:50 UTC ( [id://918591]=note: print w/replies, xml ) Need Help??


in reply to my program will not display a correct answer, to a random question?

First, you should chomp $ask:
chomp $ask;
Next, you need to type in the word Add when prompted:
Type in a number: 2 Type in another number: 3 What would you like done? Your choice is: 1) Add 2) Subtract 3) Multiply 4) Divide Add 2 + 3 = 5
Other advice:

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://918591]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2024-03-28 18:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found