in reply to Re: Creating dispatch table with variable in function name
in thread Creating dispatch table with variable in function name
Regarding your concern about it seeming "sort of similar to symbolic references", the most common response I see to "use a variable as a variable name" questions is that you should instead put your data in a hash and look it up by name that way. This is the exact same thing. The hash just contains coderefs instead of static data values.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Creating dispatch table with variable in function name
by Laurent_R (Canon) on Nov 22, 2017 at 19:04 UTC | |
by dsheroh (Monsignor) on Nov 23, 2017 at 09:48 UTC | |
by roboticus (Chancellor) on Nov 23, 2017 at 16:46 UTC | |
by Laurent_R (Canon) on Nov 23, 2017 at 11:16 UTC | |
|
Re^3: Creating dispatch table with variable in function name
by Laurent_R (Canon) on Nov 22, 2017 at 08:50 UTC |