use strict; print "What operation?"; chomp(my $op=<>); if($op eq '-') { print $a-b; } elsif($op eq '*') { print $a*b; } #etc
In reply to Re: Help with simple calculator script.
by BUU
in thread Help with simple calculator script.
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |