dynamically loading perl modules
- From: stig <_nospam_stigerikson@xxxxxxxx>
- Date: Sat, 30 Dec 2006 20:55:42 +0100
Hi.
We are starting to build a small web portal in perl.
Already at this stage we see the need to be able to plug-in certain functionality.
strategy 1
We have thought about a solution where we can put modules in a special directory.
When the portal looks in that directory and find new modules it reads some information in via an API
that each of the modules contains (eg: getName(), getVersion() ) and presents the modules on the web portal.
strategy 2
We have also though about a solution where we enable and disable modules based on information
stored separately (in a database). This would be less dynamic but perhaps better for other reasons?
The questions i have are:
1. Is the first strategy good at all, or should we aim for the second?
2. How can we dynamically load a module?
3. Are there ways to ask a module which functions/methods it provides?
4. Should i stop developing this in perl, and look for something else?
thanks
stig
.
- Prev by Date: Re: Assigning pattern matches to an array
- Next by Date: MIDI::Score: Duration < 0, Adding Events, Native NRPNs?
- Previous by thread: Why is this dup failing under BSD?
- Next by thread: MIDI::Score: Duration < 0, Adding Events, Native NRPNs?
- Index(es):
Relevant Pages
|