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?
What I want is to be able to designate the 'running package' from a
config file, like I'm doing for many other config issues.
I guess I could eval(" package $config{package}") but I don't want
to 'eval' every damned function call. Grrr.
Bear in mind I'm a bit new to Perl and Embperl. Maybe I just missed
the so easy solution altogether...
thanks!
ml
-- --
To understand recursion, one must first understand recursion.
-- --
- Martin Langhoff @ S C I M Multimedia Technology -
- http://www.scim.net | God is real until -
- mailto:[EMAIL PROTECTED] | declared integer -