The first problem is that you're using the assignment operator as a string comparison operator. So the first comparison in your first subroutine is *always* true, making the subroutine return "01". Instead of "=", use "eq", the string comparison operator....
...roboticus
When your only tool is a hammer, all problems look like your thumb.
In reply to Re: calling a subroutine from another subroutine
by roboticus
in thread calling a subroutine from another subroutine
by abcdefg
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |