hi
>
>     I've built my forst 'complex' site with Embperl, with a series of
> web-applications like a calendar and an address book relie.
>
>     The code is modularized in a main lib, where all the DBI routines
> are implemented and a separated lib for each 'application'. These libs
> are 'Executed' to compile the functions into a pre-set package.
>
>     Now I'm trying to go one step further and make the code ready to be
> implemented in a few more sites. The problem is that both the code and
> static varibles remain there in memory-space in a 'shared package'. And
> this 'shared package' model blocks me from having many sites with
>         a] different 'configuration related' static variables
>         b] different code versions
>
>     The only solution is to manually change the package -- for each file
> that is part of the site. Not to mention the (many) function calls with
> the &myPackage::mySub() syntax I'm using.
>
>     Now, what the hell can I do?
>

A global variable is global for the whole Webserver. That's always true for
mod_perl and can't be changed.

Put your code and data inside an object, the you can create different
objects for the differnt sites.

Gerald


-------------------------------------------------------------
Gerald Richter    ecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting

Post:       Tulpenstrasse 5         D-55276 Dienheim b. Mainz
E-Mail:     [EMAIL PROTECTED]         Voice:    +49 6133 925151
WWW:        http://www.ecos.de      Fax:      +49 6133 925152
-------------------------------------------------------------

Reply via email to