dynamically loading perl modules



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

.



Relevant Pages

  • Re: JavaScript Variable Interpolation, Take II
    ... Another option would be to install free ActivePerl and then use Perl ... Concerning the string interpolation functionality you are seeking for: ... indeed Javascript completely misses it. ...
    (comp.lang.javascript)
  • Re: Detect open windows shares?
    ... The product is to be written in Perl and provide NMAP-type ... functionality, plus more, in order to aid a network administrator in ... functions I would like to provide is the ability to scan a network for ... Maybe thats why so little in the core. ...
    (comp.lang.perl.misc)
  • Re: Custom PM Modules Wont Work
    ... divide the functionality into modules but as soon as I try I get the error ... Can someone give me a simple example Perl script that uses a module so I ... package Foo; ...
    (comp.lang.perl.modules)
  • Re: Detect open windows shares?
    ... I am developing a product as part of a university assignment. ... The product is to be written in Perl and provide NMAP-type ... functionality, plus more, in order to aid a network administrator in ... functions I would like to provide is the ability to scan a network for ...
    (comp.lang.perl.misc)