in reply to How to call subroutines using variables ?
And do a search or super search for "dispatch table".