P is for Practical | |
PerlMonks |
Dynamicaly loading modulesby Sinister (Friar) |
on Feb 13, 2002 at 12:44 UTC ( [id://145148]=perlquestion: print w/replies, xml ) | Need Help?? |
Sinister has asked for the wisdom of the Perl Monks concerning the following question: Fellow Monks, I am working on a system with multiple states. Each state should have its own events, and in order to accomplish this, each state has it's own module. Right now we are talking about a mere four different states, which resulted in code like this:
Of course this solution is not very elegant, especialy not when you consider I am facing 20 or more states... I am looking for a way to trick the use statement, to accept scalars and such...
Back to
Seekers of Perl Wisdom
|
|