That is an example of how it currently reads, but I want something a bit easier to scale, as there will be many subroutines to call. How would I have an array contain subroutines and step forward or backward in that array when a certain condition is met? Thanks in advance.$input = <>; if ($input = 0) { &routine0; } elsif ($input = 1) { &routine1; } else { exit; }
In reply to Step through an array containing subroutines by austin43
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |