Do you know where your variables are? | |
PerlMonks |
How to make a perl file add random numbers that a user enters?by rse2 (Initiate) |
on Aug 03, 2011 at 18:26 UTC ( [id://918354]=perlquestion: print w/replies, xml ) | Need Help?? |
rse2 has asked for the wisdom of the Perl Monks concerning the following question: i have an assignment to make a perl file, where 1. ask the user to type in a number. 2. ask the user to type in another number. 3. ask user what is to be done multiply, add, subtract, divide. 4. display the correct answer. So far i got the two first covered. but i am stumped at how to make it calculate random things. I am very new at this. Do i have to program to do every number or is there a way to make it calculate random things. Thanks a million
Back to
Seekers of Perl Wisdom
|
|