in reply to RE: RE: RE: Module programming
in thread Module programming

Oh ok,.. What I plan to do a write perl modules to fetch headlines/news from sites and show on host website as dynamically generated pages. A = basic module that prints the HTML header and footer. B,C,D etc = module to print specific site's news (like /.) Each module B,C,D will need the proxy server name and port to access and retrieve the individual site backend file. This is the scenario.. (\/)(\/)

Replies are listed 'Best First'.
RE: What A, B & C are
by merlyn (Sage) on Oct 31, 2000 at 10:32 UTC
    Then what you need is "D", the one who knows how to go out to a site. A, B, and C all ask D to get a page given a URL. Case closed. No need for a global.

    -- Randal L. Schwartz, Perl hacker

      Great .. Why the heck did I not think about that ! ;) .. Thanks a lot.

      That design solved some of my other problems also.
      (\/)(\/)
        Experience, my son. I wrote my first Object-Oriented program in Smalltalk80 nearly 20 years ago. {grin} Glad to be of help.

        -- Randal L. Schwartz, Perl hacker