It looks correct. A few points:
our @codes = ( sub {}, sub { my ($n1, $n2) = @_; print "The Sum of the Numbers $n1 + $n2 is ", $n1 + $n2, "\n"; }, sub { my ($n1, $n2) = @_; print "The Difference of the Numbers $n1 - $n2 is ", $n1 - $n2 +, "\n"; }, # . . . ); $codes[$sign]->($num1, $num2);
After Compline,
Zaxo
In reply to Re: My second script
by Zaxo
in thread My second script
by hozefa
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |