Since Grandfather appears to have solved your problem already, may I recommend dominus's Higher-Order Perl, chapter 2 "Dispatch tables"?
In reply to Re: Help with perl game
by Anonymous Monk
in thread Help with perl game
by rainbowwarrior
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |