|
CSCI A348/548
|
Write a second script with the following functionality.
Then post the source code under the protected directory.
Write a perl calculator that works like this:
Explain how this program is different from (or similar to) the second CGI script.frilled.cs.indiana.edu%./calculator add 3 You have typed: add 3 Acc is now 3 add 4 You have typed: add 4 Acc is now 7 sub 2 You have typed: sub 2 Acc is now 5 sub 12 You have typed: sub 12 Acc is now -7 add -3 You have typed: add -3 Acc is now -10 bye You have typed: bye Good-bye! frilled.cs.indiana.edu%