Think about Loose Coupling | |
PerlMonks |
Re: Thorny design problemby friedo (Prior) |
on Sep 07, 2005 at 21:23 UTC ( [id://490002]=note: print w/replies, xml ) | Need Help?? |
I don't see any particular reason to use eval. Why not do something like this?
Update: Actually that should be:
...per mpeters' note below. There are also some CPAN modules for doing plugins which will scan a directory and load each module fitting some criteria, so you don't even have to do the require.
In Section
Seekers of Perl Wisdom
|
|