The best way to do this is using a dispatch table. See Implementing Dispatch Tables for a tutorial.
In reply to Re: subroutines - creating a custom subroutine and 'subroutine redefined' errors
by FunkyMonk
in thread subroutines - creating a custom subroutine and 'subroutine redefined' errors
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |