Dispatch table - yes, string eval - OMG NO! especially not for a beginner!
Your grep test for "Non-numeric input" won't accept floating point numbers or negative numbers.
In reply to Re^2: Simple add and multiply subroutines
by jwkrahn
in thread Simple add and multiply subroutines
by negzero7
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |