in reply to Same function multiples unknown modules

Thanks everyone for your comments. Regretfully I'm stuck in the same position I previously was. So I have to assume that it isn't possible to accomplish the chosen task as I originally thought. The information from Zaxo proves 'promising', however, a bit 'dangerous' in regards to security. The primary goal was to simply make a single 'program control' script that loads and runs the 'modules' I included in the specific directories, and be able to simply add a new 'module' without needing to update the primary 'program control' file. I'm sure it is possible to accomplish this, but I doubt it can be done in the exact way I originally thought it could.

If explanation helps someone, who may have already done something along these lines, then here goes:
program.cgi (Primary control file, written once with just a handful of lines (roughly 100 or so code lines for over all handling and never changed))
addon1.pm
addon2.pm
...

In essence, a plug-in model, where specific subs must be in the .pm files and in specific subdirectories when program.cgi executes to be 'included'. Additional addon?.pm files can be later added to add to the over all application, without the requirement to update program.cgi. Most likely I've bitten off more then I can chew with this 'project', and know what I want, but simply do not have the Perl programming understanding to implement it. If, by chance, someone has done something along these lines, I'd love to see how it was done. Study the code, and learn from it. Tried the usual source (Source Forge) but was unable to find anything, perhaps due to incorrect search arguments though.
  • Comment on Re: Same function multiples unknown modules