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.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.