in reply to Debug basic calculator syntax

My litiany of counter-questions in a case like this one:

use strict; use warnings; use diagnostics;
is your friend...

Replies are listed 'Best First'.
Re^2: Debug basic calculator syntax
by ROB6789 (Novice) on Jun 23, 2005 at 21:09 UTC
    when i run the program, it will only do the adding part of the program reguardless of if i enter "n"...or anything else

      perldoc perlop
      is your other friend... you have lots of friends in Perl.. Kinda reminds me of the old Sunday school song (with apologies to nobody) "What a friend we have in Camel!"

      Anyway, take a look at your comparison statement in your first "if" statement. You are doing an assign and not a comparison.

      Check out perlop... you'll be glad you did...