![]() |
|
more useful options | |
PerlMonks |
"Dynamic" dispatch tablesby elTriberium (Friar) |
on Apr 29, 2011 at 17:58 UTC ( #902050=perlquestion: print w/replies, xml ) | Need Help?? |
elTriberium has asked for the wisdom of the Perl Monks concerning the following question:
Hi,
I want to dynamically call subroutines based on user input. I know that there are some security concerns with that, but in this scenario I think it should work. Here's the basic idea: Then, later on call it with:
It's basically a big test file, which supports running individual test case ids, which can be passed in through the command line. My question now is: Since there are some security concerns for this and it requires some manual setup (creating the dispatch table, checking whether the sub exists at all, etc.) is there already a module which provides the required functionality? I thought that I can't be the first one ever having to run individual subs based on user input. Thanks!
Back to
Seekers of Perl Wisdom
|
|