Have you looked at the perl functions require , use and do ?
Most people believe that if it ain't broke, don't fix it.
Engineers believe that if it ain't broke, it doesn't have enough features yet.
| [reply] |
but I'm at a dead end of searching through the web for a cgi answer, any suggestions would be greatly appreciated. CGI doesn't really have much to do with it Visit Tutorials and read Simple Module Tutorial Also, get a copy of Modern Perl , it covers same territory and more
| [reply] |
I'm not quite clear on what you're attempting to combine here.
Are you trying to combine a bunch of Perl code into a central collection which can be accessed by multiple CGI programs? If so, look for information on creating Perl modules.
Are you trying to build individual pages by assembling reusable pieces of HTML, such as standard/shared headers, footers, or sidebars? If so, you need a templating system. Template::Toolkit is the current 800-lb gorilla of Perl templates, but there are other good options out there, such as Alloy (which is mostly TT-compatible, but faster) and Xslate (my current preference). | [reply] |