in reply to Re: Debug basic calculator syntax
in thread Debug basic calculator syntax

when i run the program, it will only do the adding part of the program reguardless of if i enter "n"...or anything else

Replies are listed 'Best First'.
Re^3: Debug basic calculator syntax
by blue_cowdawg (Monsignor) on Jun 24, 2005 at 19:17 UTC

    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...