#!/usr/local/usr/perl warnings; strict; print("\nWelcome to FiendishFish's Simple Perl Calculator.\nTo use this program, just follow the instructions.\n"); print("\nPlease enter the first number for your mathematical calculation:\n"); $num1 = ; chomp ($num1); print ("\n\nNow enter the second number for your mathematical calculation:\n"); $num2 = ; chomp ($num2); print ("\n\nWould you like to add, multiply, subtract or divide these numbers?\n"); $maths = ; chomp ($maths); if ($maths eq 'add','Add') { print ("\n\n"); print("Your answer is: ","$num1" + "$num2"); print ("\n\n"); } elsif ($maths eq 'multiply','Multiply','mult','x','X') { print ("\n\n"); print("Your answer is: ","$num1" * "$num2"); print ("\n\n"); } elsif ($maths eq 'subtract','noob') { print ("\n\n"); print("Your answer is: ","$num1" - "$num2"); print ("\n\n"); } elsif ($maths eq 'divide') { print ("\n\n"); print("Your answer is: ","$num1" / "$num2"); print ("\n\n"); } else { print ("\n\nInvalid Mathematical Operator\n\n"); } print("Program Complete...Closing\n\n"); ;